mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
check statichandle before attaching
it is possible for udp_recv_cb() to fire after the socket is already shutting down and statichandle is NULL; we need to create a temporary handle in this case.
This commit is contained in:
parent
75427139ad
commit
32b50407bf
@ -2144,7 +2144,7 @@ isc__nm_get_read_req(isc_nmsocket_t *sock, isc_sockaddr_t *sockaddr) {
|
||||
isc_nmhandle_attach(sock->statichandle, &req->handle);
|
||||
break;
|
||||
default:
|
||||
if (atomic_load(&sock->client)) {
|
||||
if (atomic_load(&sock->client) && sock->statichandle != NULL) {
|
||||
isc_nmhandle_attach(sock->statichandle, &req->handle);
|
||||
} else {
|
||||
req->handle = isc__nmhandle_get(sock, sockaddr, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user