fix ares_get_servers
This commit is contained in:
parent
c77a0f1527
commit
f42ed59831
|
@ -0,0 +1,28 @@
|
|||
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
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
Summary: A library that performs asynchronous DNS operations
|
||||
Name: c-ares
|
||||
Version: 1.7.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://c-ares.haxx.se/
|
||||
|
@ -9,6 +9,9 @@ Source0: http://c-ares.haxx.se/c-ares-%{version}.tar.gz
|
|||
Source1: LICENSE
|
||||
Patch0: %{name}-1.7.0-optflags.patch
|
||||
Patch1: c-ares-multilib.patch
|
||||
# upstream patches from 1.4 development
|
||||
Patch2: 0001-Add-missing-break-that-caused-get_ares_servers-to-fa.patch
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
|
@ -66,6 +69,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_mandir}/man3/ares_*
|
||||
|
||||
%changelog
|
||||
* Wed Aug 25 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-2
|
||||
- fix ares_get_servers
|
||||
|
||||
* Tue Jun 15 2010 Jakub Hrozek <jhrozek@redhat.com> - 1.7.3-1
|
||||
- Upgrade to new upstream release 1.7.3 (obsoletes search/domain patch)
|
||||
- Fix conflict of -devel packages on multilib architectures (#602880)
|
||||
|
|
Loading…
Reference in New Issue