From: Mark Andrews Date: Wed, 17 Sep 2003 05:34:55 +0000 (+0000) Subject: 1505. [bug] Uninitaliased rdataset is sdb. [RT #8750] X-Git-Tag: v9.2.4rc1~111^2~76 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fefe1106d96d3a89b21315f665b36a67cdea3840;p=thirdparty%2Fbind9.git 1505. [bug] Uninitaliased rdataset is sdb. [RT #8750] --- diff --git a/CHANGES b/CHANGES index 61d4461b30c..ba532e5295f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +1505. [bug] Uninitaliased rdataset is sdb. [RT #8750] + 1504. [func] New zone type "delegation-only". 1503. [port] win32: install libeay32.dll outside of system32. diff --git a/lib/dns/sdb.c b/lib/dns/sdb.c index bcf753155f9..fb46b880886 100644 --- a/lib/dns/sdb.c +++ b/lib/dns/sdb.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: sdb.c,v 1.38 2001/11/15 20:32:03 gson Exp $ */ +/* $Id: sdb.c,v 1.39 2003/09/17 05:34:55 marka Exp $ */ #include @@ -818,8 +818,10 @@ find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version, dns_fixedname_init(&fname); xname = dns_fixedname_name(&fname); - if (rdataset == NULL) + if (rdataset == NULL) { + dns_rdataset_init(&xrdataset); rdataset = &xrdataset; + } result = DNS_R_NXDOMAIN;