From ea7c5ac392968656acc082c60ea3085a4082c328 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 30 Sep 2020 14:55:35 +0200 Subject: [PATCH] - Fix double loopexit for unbound-dnstap-socket after sigterm. --- dnstap/unbound-dnstap-socket.c | 4 +++- doc/Changelog | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dnstap/unbound-dnstap-socket.c b/dnstap/unbound-dnstap-socket.c index 5a540f337..3ebe2b4e4 100644 --- a/dnstap/unbound-dnstap-socket.c +++ b/dnstap/unbound-dnstap-socket.c @@ -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; } diff --git a/doc/Changelog b/doc/Changelog index aba2a9ae2..7672435d4 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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. -- 2.47.3