Commit 18d1a4ea authored by Brian Wellington's avatar Brian Wellington
Browse files

fix the case when keys are not specified on the command line

parent 0e23f201
......@@ -17,7 +17,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.104 2000/10/27 18:48:22 bwelling Exp $ */
/* $Id: dnssec-signzone.c,v 1.105 2000/10/27 20:27:51 bwelling Exp $ */
#include <config.h>
......@@ -1450,6 +1450,8 @@ main(int argc, char *argv[]) {
if (argc == 0) {
signer_key_t *key;
loadzonekeys(db);
key = ISC_LIST_HEAD(keylist);
while (key != NULL) {
key->isdefault = ISC_TRUE;
......@@ -1488,12 +1490,9 @@ main(int argc, char *argv[]) {
} else
dst_key_free(&newkey);
}
}
if (ISC_LIST_EMPTY(keylist))
loadzonekeys(db);
else
loadzonepubkeys(db);
}
if (ISC_LIST_EMPTY(keylist))
fprintf(stderr, "%s: warning: No keys specified or found\n",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment