From 98820aef7ed413f12486dacc5a096bea0d0cd951 Mon Sep 17 00:00:00 2001 From: Aram Sargsyan Date: Tue, 1 Mar 2022 12:47:24 +0000 Subject: [PATCH] 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. --- bin/dig/dighost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/dig/dighost.c b/bin/dig/dighost.c index e09c547e3c..3d205583a4 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; }