mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Clear sock->magic to 0 when destroying a netmgr socket
This commit is contained in:
committed by
Ondřej Surý
parent
a8807d9a7b
commit
7ef756f639
@@ -771,6 +771,7 @@ nmsocket_cleanup(isc_nmsocket_t *sock, bool dofree) {
|
||||
}
|
||||
|
||||
isc_astack_destroy(sock->inactivereqs);
|
||||
sock->magic = 0;
|
||||
|
||||
isc_mem_free(sock->mgr->mctx, sock->ah_frees);
|
||||
isc_mem_free(sock->mgr->mctx, sock->ah_handles);
|
||||
|
Reference in New Issue
Block a user