]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3899. [bug] "request-ixfr" is only applicable to slave and redirect
authorMark Andrews <marka@isc.org>
Fri, 25 Jul 2014 04:23:14 +0000 (14:23 +1000)
committerMark Andrews <marka@isc.org>
Fri, 25 Jul 2014 04:23:14 +0000 (14:23 +1000)
                        zones. [RT #36608]

CHANGES
bin/tests/system/checkconf/bad-master-request-ixfr.conf [new file with mode: 0644]
bin/tests/system/ixfr/ns3/named.conf
lib/bind9/check.c

diff --git a/CHANGES b/CHANGES
index 8aee273d68775f54d62bd11f9fb9a885ded0c7f7..b2bcd033a014464b3a303233aaf5a6f93a178dea 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3899.  [bug]           "request-ixfr" is only applicable to slave and redirect
+                       zones. [RT #36608]
+
 3898.  [bug]           Too small a buffer in tohexstr() calls in test code.
                        [RT #36598]
 
diff --git a/bin/tests/system/checkconf/bad-master-request-ixfr.conf b/bin/tests/system/checkconf/bad-master-request-ixfr.conf
new file mode 100644 (file)
index 0000000..0a8c9ba
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+ * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+ * request-ixfr clause is not allowed in zone of type master.
+ */
+
+zone dummy {
+       type master;
+       request-ixfr no;
+       file "xxxx";
+};
index 5edba116ffd143b299778c82ea42ec09e863043e..11c482dfe8aa6a21122bba937f5024ddd53414a2 100644 (file)
@@ -48,7 +48,6 @@ view "primary" {
        zone "sub.test" IN {
                type master;
                file "subtest.db";
-               request-ixfr no;
        };
        zone "large" IN {
                type master;
index 086c35bc3d9a0c88cf35315a70660bcdfe0a9d99..0e814012325e7fdb37d87bd6059fc1804af85c66 100644 (file)
@@ -1513,6 +1513,7 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
        { "notify-source", MASTERZONE | SLAVEZONE },
        { "notify-source-v6", MASTERZONE | SLAVEZONE },
        { "pubkey", MASTERZONE | SLAVEZONE | STUBZONE },
+       { "request-ixfr", SLAVEZONE | REDIRECTZONE },
        { "server-addresses", STATICSTUBZONE },
        { "server-names", STATICSTUBZONE },
        { "sig-re-signing-interval", MASTERZONE | SLAVEZONE },