- --- 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]
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,
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
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);
}