Merge branch '834-fix-race-in-fctx-cancel-v9_14' into 'v9_14'

fix race in socket code

See merge request isc-projects/bind9!1672
This commit is contained in:
Evan Hunt 2019-03-12 16:10:22 -04:00
commit 84910c0920
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,6 @@
5182. [bug] Fix a high-load race/crash in handling of
isc_socket_close() in resolver. [GL #834]
5180. [bug] delv now honors the operating system's preferred
ephemeral port range. [GL #925]

View file

@ -1323,7 +1323,8 @@ fctx_cancelquery(resquery_t **queryp, dns_dispatchevent_t **deventp,
isc_socket_cancel(sock, NULL,
ISC_SOCKCANCEL_CONNECT);
}
} else if (RESQUERY_SENDING(query)) {
}
if (RESQUERY_SENDING(query)) {
/*
* Cancel the pending send.
*/