+5404. [bug] 'named-checkconf -z' could incorrectly indicate
+ success if errors were found in one view but not in a
+ subsequent one. [GL #1807]
+
5398. [bug] Named could fail to restart if a zone added with
'rndc addzone' contained a double quote (") in
its name. [GL #1695]
continue;
classobj = cfg_tuple_get(vconfig, "class");
- CHECK(config_getclass(classobj, dns_rdataclass_in,
- &viewclass));
- if (dns_rdataclass_ismeta(viewclass))
+ tresult = config_getclass(classobj, dns_rdataclass_in,
+ &viewclass);
+ if (tresult != ISC_R_SUCCESS) {
+ CHECK(tresult);
+ }
+
+ if (dns_rdataclass_ismeta(viewclass)) {
CHECK(ISC_R_FAILURE);
+ }
dns_rdataclass_format(viewclass, buf, sizeof(buf));
vname = cfg_obj_asstring(cfg_tuple_get(vconfig, "name"));
--- /dev/null
+/*
+ * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+view missing {
+ zone missing.example {
+ type master;
+ file "missing.example.db";
+ };
+};
+
+view good {
+ zone shared.example {
+ type master;
+ file "shared.example.db";
+ };
+};
if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
status=`expr $status + $ret`
+n=`expr $n + 1`
+echo_i "check that named-checkconf -z returns error when a later view is okay ($n)"
+ret=0
+$CHECKCONF -z check-missing-zone.conf > checkconf.out$n 2>&1 && ret=1
+if [ $ret != 0 ]; then echo_i "failed"; ret=1; fi
+status=`expr $status + $ret`
+
n=`expr $n + 1`
echo_i "check that named-checkconf prints max-cache-size <percentage> correctly ($n)"
ret=0
./bin/tests/system/checkconf/check-dlv-ksk-key.conf CONF-C 2018,2019,2020
./bin/tests/system/checkconf/check-dup-records-fail.conf CONF-C 2014,2016,2018,2019,2020
./bin/tests/system/checkconf/check-dup-records.db ZONE 2014,2016,2018,2019,2020
+./bin/tests/system/checkconf/check-missing-zone.conf CONF-C 2020
./bin/tests/system/checkconf/check-mx-cname-fail.conf CONF-C 2014,2016,2018,2019,2020
./bin/tests/system/checkconf/check-mx-cname.db ZONE 2014,2016,2018,2019,2020
./bin/tests/system/checkconf/check-mx-fail.conf CONF-C 2014,2016,2018,2019,2020