]> 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>
Thu, 15 Feb 2018 23:19:57 +0000 (10:19 +1100)
bin/dnssec/dnssectool.c

index 3431ac8f8534566d22cee8ada1bc7521225f01f2..f4b5e74a6c3d83cd88cde6c79e823fc9eba86835 100644 (file)
@@ -209,12 +209,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