3607. [bug] dnssec-keygen had broken 'Invalid keyfile' error

message. [RT #34045]
This commit is contained in:
Mark Andrews 2013-07-03 15:41:48 +10:00
parent 43d8d314d5
commit 9d69017bc6
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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);