]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup bind8:
authorMark Andrews <marka@isc.org>
Thu, 3 Nov 2005 00:01:18 +0000 (00:01 +0000)
committerMark Andrews <marka@isc.org>
Thu, 3 Nov 2005 00:01:18 +0000 (00:01 +0000)
1721.   [bug]           Change #1718 was incomplete.  Missing error return
                        on out of memory.

lib/bind/resolv/res_init.c

index eedbf4d77241222d2c6a50f574b50e2cdcaa57c1..596c0fc6e855c14c696c3dc691e153861c57aec5 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_init.c   8.1 (Berkeley) 6/7/93";
-static const char rcsid[] = "$Id: res_init.c,v 1.16.18.3 2005/09/09 00:40:27 marka Exp $";
+static const char rcsid[] = "$Id: res_init.c,v 1.16.18.4 2005/11/03 00:01:18 marka Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 #include "port_before.h"
@@ -216,7 +216,8 @@ __res_vinit(res_state statp, int preinit) {
                statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr;
                strcpy(statp->_u._ext.ext->nsuffix, "ip6.arpa");
                strcpy(statp->_u._ext.ext->nsuffix2, "ip6.int");
-       }
+       } else
+               return (-1);
 #ifdef RESOLVSORT
        statp->nsort = 0;
 #endif