From: Mark Andrews Date: Thu, 3 Nov 2005 00:00:52 +0000 (+0000) Subject: pullup bind8: X-Git-Tag: v9.3.2rc1~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbb450522b378ee35ec40aca2973906ecd83ef2c;p=thirdparty%2Fbind9.git pullup bind8: 1721. [bug] Change #1718 was incomplete. Missing error return on out of memory. --- diff --git a/lib/bind/resolv/res_init.c b/lib/bind/resolv/res_init.c index ba5d7f7039d..28a3ebd088e 100644 --- a/lib/bind/resolv/res_init.c +++ b/lib/bind/resolv/res_init.c @@ -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.9.2.5.4.4 2005/09/09 00:40:56 marka Exp $"; +static const char rcsid[] = "$Id: res_init.c,v 1.9.2.5.4.5 2005/11/03 00:00:52 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