]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a shutdown race in netmgr udp
authorWitold Kręcicki <wpk@isc.org>
Mon, 22 Jun 2020 22:46:11 +0000 (15:46 -0700)
committerEvan Hunt <each@isc.org>
Fri, 26 Jun 2020 07:19:42 +0000 (00:19 -0700)
commit1cf65cd8829f01cc38f47b1180d7fbe3ab710d35
treea24e884dba5f36e50abb35424bf45e2ae3e6fad9
parent3704c4fff2757ade6dda56865aa87935d0c447b9
Fix a shutdown race in netmgr udp

We need to mark the socket as inactive early (and synchronously)
in the stoplistening process; otherwise we might destroy the
callback argument before we actually stop listening, and call
the callback on bad memory.
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/udp.c