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.

(cherry picked from commit 98820aef7e)
This commit is contained in:
Aram Sargsyan 2022-03-01 12:47:24 +00:00 committed by Ondřej Surý
parent 74c98d82f0
commit 8b6245e298

View file

@ -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;
}