From: Evan Hunt Date: Fri, 17 Oct 2014 22:41:13 +0000 (-0700) Subject: [master] fix spurious error in rndc secroots X-Git-Tag: v9.11.0a1~1353 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=27174d90ccf7d15539b9384744dbbe7beae1723c;p=thirdparty%2Fbind9.git [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] --- diff --git a/CHANGES b/CHANGES index 3e8f70e21e9..90940798c3a 100644 --- a/CHANGES +++ b/CHANGES @@ -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 any cached trust so that they will always be revalidated with the current set of secure diff --git a/bin/named/server.c b/bin/named/server.c index aed628fc82d..11ba8efcce1 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -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)); }