]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't destroy a non-closed socket, wait for all the callbacks.
authorEvan Hunt <each@isc.org>
Wed, 1 Jul 2020 07:49:12 +0000 (00:49 -0700)
committerOndřej Surý <ondrej@isc.org>
Thu, 1 Oct 2020 14:44:43 +0000 (16:44 +0200)
commit6b77bd309a56b1e6fda34b0d1ca5f09ebfec2777
tree45a787b13b15d214689b0d0b30d57c9b5eb9f7d4
parent5a0fbc41ecfb3be53eada71f4f1dd4346280d667
Don't destroy a non-closed socket, wait for all the callbacks.

We erroneously tried to destroy a socket after issuing
isc__nm_tcp{,dns}_close. Under some (race) circumstances we could get
nm_socket_cleanup to be called twice for the same socket, causing an
access to a dead memory.

(cherry picked from commit 233f134a4ff806187925a106270a1f3794d5a1d5)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c