2
0
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:
Witold Kręcicki
2020-05-28 14:47:04 +02:00
committed by Ondřej Surý
parent a8807d9a7b
commit 7ef756f639

View File

@@ -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);