From 293cd3170019015b6ce40f9fa5efc45bd89dad1a Mon Sep 17 00:00:00 2001 From: Ben Greear Date: Tue, 24 Aug 2010 16:48:47 -0700 Subject: [PATCH] Add missing break that caused get_ares_servers to fail. Reported-by: Ning Dong Signed-off-by: Ben Greear --- ares_data.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ares_data.c b/ares_data.c index 6b6fae8..a2477be 100644 --- a/ares_data.c +++ b/ares_data.c @@ -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); -- 2.7.4