29 lines
867 B
Diff
29 lines
867 B
Diff
From 293cd3170019015b6ce40f9fa5efc45bd89dad1a Mon Sep 17 00:00:00 2001
|
|
From: Ben Greear <greearb@candelatech.com>
|
|
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 <flintning@163.com>
|
|
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
---
|
|
ares_data.c | 3 ++-
|
|
1 files changed, 2 insertions(+), 1 deletions(-)
|
|
|
|
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);
|
|
--
|
|
1.7.2.1
|
|
|