]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Fri, 2 Nov 2001 20:55:24 +0000 (20:55 +0000)
committerAndreas Gustafsson <source@isc.org>
Fri, 2 Nov 2001 20:55:24 +0000 (20:55 +0000)
1092.   [bug]           libbind: get*by*() failed to check if res_init() had
                        been called.

CHANGES
lib/bind/irs/irs_data.c

diff --git a/CHANGES b/CHANGES
index a0ed30285d3c2620d0c0f27c477581a741a366c7..01fd3ad6a08b1cddab91ecaccf558c52cc851cdb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,9 @@
 
 1101.  [bug]           Array bounds read error in lwres_gai_strerror.
 
+1092.  [bug]           libbind: get*by*() failed to check if res_init() had
+                       been called.
+
 1091.  [bug]           libbind: misplaced va_end().
 
 1090.  [bug]           libbind: dns_ho.c:add_hostent() was not returning
index a7463022c5621ba764be8c0e701e9c348f65732f..d1bf75b080267882769a3b3bfd94bd7e2ec965d1 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: irs_data.c,v 1.3 2001/07/04 08:10:23 marka Exp $";
+static const char rcsid[] = "$Id: irs_data.c,v 1.3.2.1 2001/11/02 20:55:24 gson Exp $";
 #endif
 
 #include "port_before.h"
@@ -153,7 +153,8 @@ net_data_create(const char *conf_file) {
        if (net_data->res == NULL)
                return (NULL);
 
-       if (res_ninit(net_data->res) == -1)
+       if ((net_data->res->options & RES_INIT) == 0 &&
+           res_ninit(net_data->res) == -1)
                return (NULL);
 
        return (net_data);