mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
[master] fix spurious error in rndc secroots
3977. [cleanup] "rndc secroots" reported a "not found" error when there were no negative trust anchors set. [RT #37506]
This commit is contained in:
@@ -7891,7 +7891,7 @@ ns_server_dumpsecroots(ns_server_t *server, char *args) {
|
||||
}
|
||||
fprintf(fp, "\n Negative trust anchors:\n\n");
|
||||
result = dns_ntatable_dump(ntatable, fp);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND)
|
||||
fprintf(fp, " dumpntatable failed: %s\n",
|
||||
isc_result_totext(result));
|
||||
}
|
||||
|
Reference in New Issue
Block a user