mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 19:04:57 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue