]> git.ipfire.org Git - thirdparty/bind9.git/commit
Explicitly stop reading before closing the nmtcpsocket
authorOndřej Surý <ondrej@sury.org>
Tue, 20 Oct 2020 18:57:19 +0000 (20:57 +0200)
committerEvan Hunt <each@isc.org>
Thu, 22 Oct 2020 21:59:01 +0000 (14:59 -0700)
commite18f3fd003ca170f41407df12cd72484272b9df2
tree20dabc9ab5a1e32cf137887bc655a83cbfaf67d6
parent63e923364f8298d0f239cb1b189f0c69db3c8073
Explicitly stop reading before closing the nmtcpsocket

When closing the socket that is actively reading from the stream, the
read_cb() could be called between uv_close() and close callback when the
server socket has been already detached hence using sock->statichandle
after it has been already freed.

(cherry picked from commit 97b33e5bde296feb82c1d8bb703e56c1b224e129)
lib/isc/netmgr/tcp.c