]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
clear *logp
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 06:53:23 +0000 (17:53 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 04:14:32 +0000 (15:14 +1100)
bin/dnssec/dnssectool.c

index 33df86527fb0a8d97473493c3c140c6d1dbd28fc..ee878b4a2176d30594cc4018a2f76b79a5291a81 100644 (file)
@@ -216,12 +216,14 @@ cleanup_logging(isc_log_t **logp) {
        REQUIRE(logp != NULL);
 
        log = *logp;
+       *logp = NULL;
+
        if (log == NULL)
                return;
+
        isc_log_destroy(&log);
        isc_log_setcontext(NULL);
        dns_log_setcontext(NULL);
-       logp = NULL;
 }
 
 void