From: Aram Sargsyan Date: Tue, 1 Mar 2022 12:47:24 +0000 (+0000) Subject: Add a missing UNLOCK_LOOKUP X-Git-Tag: v9.19.0~85^2~2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=98820aef7ed413f12486dacc5a096bea0d0cd951;p=thirdparty%2Fbind9.git Add a missing UNLOCK_LOOKUP There was a missing UNLOCK_LOOKUP in the recv_done() callback when the operation had been canceled. That omission could result in a deadlock situation. --- diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index e09c547e3c5..3d205583a42 100644 --- a/bin/dig/dighost.c +++ b/bin/dig/dighost.c @@ -3583,6 +3583,7 @@ recv_done(isc_nmhandle_t *handle, isc_result_t eresult, isc_region_t *region, debug("recv_done: cancel"); isc_nmhandle_detach(&query->readhandle); query_detach(&query); + UNLOCK_LOOKUP; return; }