diff --git a/daemon/daemon.c b/daemon/daemon.c index f68bd981b..85ae1e0a1 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -706,9 +706,11 @@ daemon_cleanup(struct daemon* daemon) daemon->num = 0; #ifdef USE_DNSTAP dt_delete(daemon->dtenv); + daemon->dtenv = NULL; #endif #ifdef USE_DNSCRYPT dnsc_delete(daemon->dnscenv); + daemon->dnscenv = NULL; #endif daemon->cfg = NULL; } diff --git a/doc/Changelog b/doc/Changelog index c48609b97..6e404cdf9 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,8 @@ +26 April 2018: Wouter + - Fix for crash in daemon_cleanup with dnstap during reload, + from Saksham Manchanda. + - Also that for dnscrypt. + 25 April 2018: Ralph - Fix memory leak when caching wildcard records for aggressive NSEC use