Skip to content

Commit

Permalink
Add missing break that caused get_ares_servers to fail.
Browse files Browse the repository at this point in the history
Reported-by: Ning Dong <flintning@163.com>
Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Aug 24, 2010
1 parent e43e697 commit 293cd31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ares_data.c
Expand Up @@ -145,7 +145,8 @@ void *ares_malloc_data(ares_datatype type)
ptr->data.addr_node.next = NULL;
ptr->data.addr_node.family = 0;
memset(&ptr->data.addr_node.addrV6, 0,
sizeof(ptr->data.addr_node.addrV6));
sizeof(ptr->data.addr_node.addrV6));
break;

default:
free(ptr);
Expand Down

0 comments on commit 293cd31

Please sign in to comment.