From: Evan Hunt Date: Mon, 11 Apr 2022 00:42:49 +0000 (-0700) Subject: detach unfinished query when canceling X-Git-Tag: v9.19.1~75^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6bf8535542f7b23459dabd743e34b4768af6f31b;p=thirdparty%2Fbind9.git detach unfinished query when canceling when a query was canceled while still in the process of connecting, tcp_connected() and udp_ready() didn't detach the query object. --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index 0c09f3f5905..0b3a66a5c01 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3097,6 +3097,7 @@ udp_ready(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { query->started = true; if (atomic_load(&cancel_now)) { + query_detach(&query); return; } @@ -3452,6 +3453,7 @@ tcp_connected(isc_nmhandle_t *handle, isc_result_t eresult, void *arg) { query->started = true; if (atomic_load(&cancel_now)) { + query_detach(&query); return; }