]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update CHANGES
authorMatthijs Mekking <matthijs@isc.org>
Mon, 11 Feb 2019 16:30:04 +0000 (17:30 +0100)
committerMatthijs Mekking <github@pletterpet.nl>
Fri, 22 Feb 2019 14:26:43 +0000 (15:26 +0100)
CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 42c817c08c94584bc4f446c747e60eea51a5da8e..0cd2051c125adfc3bee400c4ad5c7087bffd28f3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,11 @@
-       --- 9.13.7 released ---
+5168.  [bug]           Do not crash on shutdown when RPZ fails to load.  Also,
+                       keep previous version of the database if RPZ fails to
+                       load. [GL #813]
+
+5167.  [bug]           nxdomain-redirect could sometimes lookup the wrong
+                       redirect name. [GL #892]
+
+5166.  [placeholder]
 
 5165.  [contrib]       Removed SDB drivers from contrib; they're obsolete.
                        [GL #428]
index 8eb4eb764ea9b8bf95c8c71ad40fe140e5b63656..735928e379da0b6d94e2d8c785310565213a79b4 100644 (file)
@@ -1783,8 +1783,9 @@ dns_zone_get_rpz_num(dns_zone_t *zone) {
 void
 dns_zone_rpz_enable_db(dns_zone_t *zone, dns_db_t *db) {
        isc_result_t result;
-       if (zone->rpz_num == DNS_RPZ_INVALID_NUM)
+       if (zone->rpz_num == DNS_RPZ_INVALID_NUM) {
                return;
+       }
        REQUIRE(zone->rpzs != NULL);
        result = dns_db_updatenotify_register(db,
                                              dns_rpz_dbupdate_callback,
@@ -1794,14 +1795,13 @@ dns_zone_rpz_enable_db(dns_zone_t *zone, dns_db_t *db) {
 
 static void
 dns_zone_rpz_disable_db(dns_zone_t *zone, dns_db_t *db) {
-       isc_result_t result;
-       if (zone->rpz_num == DNS_RPZ_INVALID_NUM)
+       if (zone->rpz_num == DNS_RPZ_INVALID_NUM) {
                return;
+       }
        REQUIRE(zone->rpzs != NULL);
-       result = dns_db_updatenotify_unregister(db,
-                                               dns_rpz_dbupdate_callback,
-                                               zone->rpzs->zones[zone->rpz_num]);
-       REQUIRE(result == ISC_R_SUCCESS);
+       (void) dns_db_updatenotify_unregister(db,
+                                             dns_rpz_dbupdate_callback,
+                                             zone->rpzs->zones[zone->rpz_num]);
 }
 
 void
@@ -1812,8 +1812,9 @@ dns_zone_catz_enable(dns_zone_t *zone, dns_catz_zones_t *catzs) {
        LOCK_ZONE(zone);
        INSIST(zone->catzs == NULL || zone->catzs == catzs);
        dns_catz_catzs_set_view(catzs, zone->view);
-       if (zone->catzs == NULL)
+       if (zone->catzs == NULL) {
                dns_catz_catzs_attach(catzs, &zone->catzs);
+       }
        UNLOCK_ZONE(zone);
 }