diff --git a/CHANGES b/CHANGES index 5bc74b5ce9..97c55be41c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3607. [bug] dnssec-keygen had broken 'Invalid keyfile' error + message. [RT #34045] + 3606. [func] "rndc flushtree" now flushes matching records in the address database and bad cache as well as the DNS cache. (Previously only the diff --git a/bin/dnssec/dnssec-keygen.c b/bin/dnssec/dnssec-keygen.c index 1e61ca392e..706182977e 100644 --- a/bin/dnssec/dnssec-keygen.c +++ b/bin/dnssec/dnssec-keygen.c @@ -655,9 +655,9 @@ main(int argc, char **argv) { mctx, &prevkey); if (ret != ISC_R_SUCCESS) fatal("Invalid keyfile %s: %s", - filename, isc_result_totext(ret)); + predecessor, isc_result_totext(ret)); if (!dst_key_isprivate(prevkey)) - fatal("%s is not a private key", filename); + fatal("%s is not a private key", predecessor); name = dst_key_name(prevkey); alg = dst_key_alg(prevkey);