mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
fix a bug pointed out by Andreas -- don't detach from socket then use it.
This commit is contained in:
@@ -218,8 +218,6 @@ destroy(dns_dispatch_t *disp)
|
||||
|
||||
XDEBUG(("dispatch::destroy: detaching from sock %p and task %p\n",
|
||||
disp->socket, disp->task));
|
||||
isc_socket_detach(&disp->socket);
|
||||
isc_task_detach(&disp->task);
|
||||
|
||||
/*
|
||||
* Final cleanup of packets on the request list.
|
||||
@@ -236,6 +234,9 @@ destroy(dns_dispatch_t *disp)
|
||||
INSIST(disp->requests == 0);
|
||||
INSIST(disp->recvs == 0);
|
||||
|
||||
isc_socket_detach(&disp->socket);
|
||||
isc_task_detach(&disp->task);
|
||||
|
||||
isc_mempool_put(disp->epool, disp->failsafe_ev);
|
||||
disp->failsafe_ev = NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user