From: Mark Andrews Date: Wed, 12 May 2004 06:39:11 +0000 (+0000) Subject: 1633. [bug] named should return NOTIMP to update requests to a X-Git-Tag: v9.2.4rc4~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d3d7be56a9573789d4f1afbb871c3f6318451c7;p=thirdparty%2Fbind9.git 1633. [bug] named should return NOTIMP to update requests to a slaves without a allow-update-forwarding acl specified. [RT #11331] --- diff --git a/CHANGES b/CHANGES index 60497957ec9..40314bbfb53 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +1633. [bug] named should return NOTIMP to update requests to a + slaves without a allow-update-forwarding acl specified. + [RT #11331] + 1632. [bug] nsupdate failed to send prerequisite only UPDATE messages. [RT #11288] diff --git a/bin/named/update.c b/bin/named/update.c index 501bdaef642..b884f61a00d 100644 --- a/bin/named/update.c +++ b/bin/named/update.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: update.c,v 1.88.2.8 2004/04/15 02:16:25 marka Exp $ */ +/* $Id: update.c,v 1.88.2.9 2004/05/12 06:39:11 marka Exp $ */ #include @@ -1973,6 +1973,10 @@ ns_update_start(ns_client_t *client, isc_result_t sigresult) { CHECK(send_update_event(client, zone)); break; case dns_zone_slave: + if (dns_zone_getforwardacl(zone) == NULL) { + result = DNS_R_NOTIMP; + goto failure; + } CHECK(ns_client_checkacl(client, "update forwarding", dns_zone_getforwardacl(zone), ISC_FALSE, ISC_LOG_ERROR));