From: Brian Wellington Date: Tue, 19 Sep 2000 22:52:48 +0000 (+0000) Subject: pullup: X-Git-Tag: v9.0.0^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c35d30aba12abafe0bac611f91e48405f0b380;p=thirdparty%2Fbind9.git pullup: 475. [bug] query_getzonedb() sometimes returned a non-null version on failure. This caused assertion failures when generating query responses where names subject to additional section processing pointed to a zone to which access had been denied by means of the allow-query option. [RT #336] --- diff --git a/CHANGES b/CHANGES index 4ee3a1d0034..4b487f74883 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ + 475. [bug] query_getzonedb() sometimes returned a non-null version + on failure. This caused assertion failures when + generating query responses where names subject to + additional section processing pointed to a zone + to which access had been denied by means of the + allow-query option. [RT #336] 474. [bug] The mnemonic of the CHAOS class is CH according to RFC1035, but it was printed and read only as CHAOS. diff --git a/bin/named/query.c b/bin/named/query.c index 8606bef8e18..56c730fe4c8 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: query.c,v 1.109.2.11 2000/08/22 01:45:09 bwelling Exp $ */ +/* $Id: query.c,v 1.109.2.12 2000/09/19 22:52:48 bwelling Exp $ */ #include @@ -490,7 +490,6 @@ query_getzonedb(ns_client_t *client, dns_name_t *name, unsigned int options, result = DNS_R_SERVFAIL; goto fail; } - *versionp = dbversion->version; if (new_zone) { check_acl = ISC_TRUE; } else if (!dbversion->queryok) { @@ -559,6 +558,7 @@ query_getzonedb(ns_client_t *client, dns_name_t *name, unsigned int options, /* Transfer ownership. */ *zonep = zone; *dbp = db; + *versionp = dbversion->version; return (ISC_R_SUCCESS);