]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix double loopexit for unbound-dnstap-socket after sigterm.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 30 Sep 2020 12:55:35 +0000 (14:55 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 30 Sep 2020 12:55:35 +0000 (14:55 +0200)
dnstap/unbound-dnstap-socket.c
doc/Changelog

index 5a540f33703daa3168cbf08e662cebf397da51d8..3ebe2b4e4124b79758dadd9ee7a92632760c17d9 100644 (file)
@@ -1167,8 +1167,10 @@ int sig_quit = 0;
 static RETSIGTYPE main_sigh(int sig)
 {
        verbose(VERB_ALGO, "exit on signal %d\n", sig);
-       if(sig_base)
+       if(sig_base) {
                ub_event_base_loopexit(sig_base);
+               sig_base = NULL;
+       }
        sig_quit = 1;
 }
 
index aba2a9ae2ed558139deaaab3eebb0af7d753b0d3..7672435d4c83734a9a25a8c18e52e589fb87393f 100644 (file)
@@ -5,6 +5,7 @@
          alloc check debug output.
        - Easier kill of unbound-dnstap-socket tool in test.
        - Fix memory leak of edns tags at libunbound context delete.
+       - Fix double loopexit for unbound-dnstap-socket after sigterm.
 
 29 September 2020: Ralph
        - DNS Flag Day 2020: change edns-buffer-size default to 1232.