| |
@@ -1317,8 +1317,7 @@
|
| |
dns_zone_logc(zone, DNS_LOGCATEGORY_SECURITY, ISC_LOG_CRITICAL,
|
| |
"cannot configure restrictive %s policy: %s",
|
| |
type_txt, isc_result_totext(result2));
|
| |
- FATAL_ERROR(__FILE__, __LINE__,
|
| |
- "insecure state detected");
|
| |
+ fatal_error("insecure state detected");
|
| |
}
|
| |
}
|
| |
acl_setter(zone, acl);
|
| |
@@ -1365,8 +1364,7 @@
|
| |
dns_zone_logc(zone, DNS_LOGCATEGORY_SECURITY, ISC_LOG_CRITICAL,
|
| |
"cannot disable all updates: %s",
|
| |
isc_result_totext(result2));
|
| |
- FATAL_ERROR(__FILE__, __LINE__,
|
| |
- "insecure state detected");
|
| |
+ fatal_error("insecure state detected");
|
| |
}
|
| |
}
|
| |
|
| |
@@ -2005,7 +2003,7 @@
|
| |
zone_settings, &rdatalist));
|
| |
|
| |
CHECK(dns_db_getoriginnode(rbtdb, &node));
|
| |
- result = dns_db_allrdatasets(rbtdb, node, version, 0,
|
| |
+ result = dns_db_allrdatasets(rbtdb, node, version, DNS_DB_ALLRDATASETS_OPTIONS(0, 0),
|
| |
&rbt_rds_iterator);
|
| |
if (result == ISC_R_SUCCESS) {
|
| |
CHECK(diff_ldap_rbtdb(inst->mctx, &name, &rdatalist,
|
| |
@@ -2951,8 +2949,7 @@
|
| |
ldap_inst);
|
| |
break;
|
| |
case AUTH_INVALID:
|
| |
- UNEXPECTED_ERROR(__FILE__, __LINE__,
|
| |
- "invalid auth_method_enum value %u",
|
| |
+ unexpected_error("invalid auth_method_enum value %u",
|
| |
auth_method_enum);
|
| |
break;
|
| |
|
| |
@@ -3782,8 +3779,7 @@
|
| |
else if (entry->class & LDAP_ENTRYCLASS_FORWARD)
|
| |
CHECK(ldap_parse_fwd_zoneentry(entry, inst));
|
| |
else
|
| |
- FATAL_ERROR(__FILE__, __LINE__,
|
| |
- "update_zone: unexpected entry class");
|
| |
+ fatal_error("update_zone: unexpected entry class");
|
| |
}
|
| |
|
| |
cleanup:
|
| |
@@ -3929,7 +3925,7 @@
|
| |
CHECK(dns_db_newversion(ldapdb, &version));
|
| |
|
| |
CHECK(dns_db_findnode(rbtdb, &entry->fqdn, true, &node));
|
| |
- result = dns_db_allrdatasets(rbtdb, node, version, 0, &rbt_rds_iterator);
|
| |
+ result = dns_db_allrdatasets(rbtdb, node, version, DNS_DB_ALLRDATASETS_OPTIONS(0, 0), &rbt_rds_iterator);
|
| |
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND)
|
| |
goto cleanup;
|
| |
|
| |
dns_db_allrdatasets() gained a new parameter. Adopt the code to allow
injecting 0 options if building against 9.18.10.
Fixes: https://pagure.io/bind-dyndb-ldap/issue/216
Signed-off-by: Alexander Bokovoy abokovoy@redhat.com