From 8771fbe4a2cee7bebd785a486824833d741c7315 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Tue, 27 Nov 2001 22:08:58 +0000 Subject: [PATCH] 1142. [bug] dnssec-signzone would fail to delete temporary files in some failure cases. [RT #2144] --- CHANGES | 3 +++ bin/dnssec/dnssectool.c | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGES b/CHANGES index c6f27f1582..ba105b8d24 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +1142. [bug] dnssec-signzone would fail to delete temporary files + in some failure cases. [RT #2144] + 1141. [bug] When named rejected a control message, it would leak a file descriptor and memory. diff --git a/bin/dnssec/dnssectool.c b/bin/dnssec/dnssectool.c index 1b10412962..9ececf6ec1 100644 --- a/bin/dnssec/dnssectool.c +++ b/bin/dnssec/dnssectool.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dnssectool.c,v 1.35 2001/09/21 00:17:00 bwelling Exp $ */ +/* $Id: dnssectool.c,v 1.36 2001/11/27 22:08:58 bwelling Exp $ */ #include @@ -76,11 +76,8 @@ setfatalcallback(fatalcallback_t *callback) { void check_result(isc_result_t result, const char *message) { - if (result != ISC_R_SUCCESS) { - fprintf(stderr, "%s: %s: %s\n", program, message, - isc_result_totext(result)); - exit(1); - } + if (result != ISC_R_SUCCESS) + fatal("%s: %s", message, isc_result_totext(result)); } void