]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a shutdown race in netmgr udp.
authorWitold Kręcicki <wpk@isc.org>
Fri, 19 Jun 2020 12:31:45 +0000 (14:31 +0200)
committerEvan Hunt <each@isc.org>
Fri, 26 Jun 2020 08:44:03 +0000 (01:44 -0700)
commit4582ef3bb2fac9073db8cfd815f915be152bff38
tree65fff2826484a83a6f7d7a3fae505defe758d256
parent4ea84740e64f44ff1d397f1a317682633f174b0d
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 actually stopping listening, and call
the callback on a bad memory.
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/udp.c