]> 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 06:44:39 +0000 (17:44 +1100)
bin/dnssec/dnssectool.c

index 8b915ee08daafa0cf9b6afd0df1d2eb1680c3c7e..bd45b52ecbefa61a98c95784569baba441670408 100644 (file)
@@ -212,12 +212,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