]> 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 13:00:01 +0000 (14:00 +0100)
CHANGES
lib/dns/zone.c

diff --git a/CHANGES b/CHANGES
index 3f45d9255808511378b7508a17344a6be09c4fca..3ec56b9c9e85943fb4bb2f101b6937ab48a339ff 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,7 @@
+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]
 
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);
 }