]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a missing UNLOCK_LOOKUP
authorAram Sargsyan <aram@isc.org>
Tue, 1 Mar 2022 12:47:24 +0000 (12:47 +0000)
committerEvan Hunt <each@isc.org>
Thu, 3 Mar 2022 19:10:52 +0000 (11:10 -0800)
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

index e09c547e3c58ebf586f8f3b70e31d65209d6eaf6..3d205583a42922eb4d8eb58ba4c22ade3edd7d0c 100644 (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;
        }