From 27174d90ccf7d15539b9384744dbbe7beae1723c Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 17 Oct 2014 15:41:13 -0700 Subject: [PATCH] [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] --- CHANGES | 3 +++ bin/named/server.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 3e8f70e21e..90940798c3 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 aed628fc82..11ba8efcce 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)); }