]> git.ipfire.org Git - thirdparty/bind9.git/commit
netmgr: don't send to an inactive (closing) udp socket
authorWitold Kręcicki <wpk@isc.org>
Thu, 16 Jan 2020 10:52:58 +0000 (11:52 +0100)
committerWitold Kręcicki <wpk@isc.org>
Mon, 20 Jan 2020 21:28:36 +0000 (22:28 +0100)
commit16908ec3d912f0ca7e01edf95685eb91a52b4f08
treee14e35ca47e06a4e59ae8cb34d9ef354cc2b2274
parent402f067fc0a478032dd3e84153991cae82c1e1f7
netmgr: don't send to an inactive (closing) udp socket

We had a race in which n UDP socket could have been already closing
by libuv but we still sent data to it. Mark socket as not-active
when stopping listening and verify that socket is not active when
trying to send data to it.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/udp.c