mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 19:02:05 -04:00
Incorrect arguments passed to fatal()
This commit is contained in:
parent
4e3316d1b7
commit
1f27f34aee
2 changed files with 4 additions and 3 deletions
|
|
@ -17,7 +17,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dnssec-keygen.c,v 1.34 2000/06/10 01:28:06 bwelling Exp $ */
|
||||
/* $Id: dnssec-keygen.c,v 1.35 2000/06/19 17:44:52 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -370,7 +370,7 @@ main(int argc, char **argv) {
|
|||
ret = dst_key_tofile(key, DST_TYPE_PUBLIC | DST_TYPE_PRIVATE, NULL);
|
||||
if (ret != ISC_R_SUCCESS)
|
||||
fatal("failed to write key %s/%s/%d: %s\n", nametostr(name),
|
||||
dst_key_id(key), algtostr(alg), isc_result_totext(ret));
|
||||
algtostr(alg), dst_key_id(key), isc_result_totext(ret));
|
||||
|
||||
isc_buffer_clear(&buf);
|
||||
ret = dst_key_buildfilename(key, 0, NULL, &buf);
|
||||
|
|
|
|||
|
|
@ -327,7 +327,8 @@ main(int argc, char *argv[]) {
|
|||
mctx, &b, rdata);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
fatal("key '%s/%s/%d' failed to sign data: %s",
|
||||
dst_key_name(key), algtostr(dst_key_alg(key)),
|
||||
nametostr(dst_key_name(key)),
|
||||
algtostr(dst_key_alg(key)),
|
||||
dst_key_id(key), isc_result_totext(result));
|
||||
ISC_LIST_APPEND(sigrdatalist.rdata, rdata, link);
|
||||
dst_key_free(&key);
|
||||
|
|
|
|||
Loading…
Reference in a new issue