2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +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:
Evan Hunt
2014-10-17 15:41:13 -07:00
parent eb6d61d5e0
commit 27174d90cc
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
3977. [cleanup] "rndc secroots" reported a "not found" error when
there were no negative trust anchors set. [RT #37506]
3976. [bug] When refreshing managed-key trust anchors, clear 3976. [bug] When refreshing managed-key trust anchors, clear
any cached trust so that they will always be any cached trust so that they will always be
revalidated with the current set of secure revalidated with the current set of secure

View File

@@ -7891,7 +7891,7 @@ ns_server_dumpsecroots(ns_server_t *server, char *args) {
} }
fprintf(fp, "\n Negative trust anchors:\n\n"); fprintf(fp, "\n Negative trust anchors:\n\n");
result = dns_ntatable_dump(ntatable, fp); 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", fprintf(fp, " dumpntatable failed: %s\n",
isc_result_totext(result)); isc_result_totext(result));
} }