]> 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 18:37:16 +0000 (11:37 -0700)
commit97b33e5bde296feb82c1d8bb703e56c1b224e129
tree0183f556f9025c0c17d30c98402297ebb04f0e6e
parentff0a336d524c249bf144b121b53d1a3fa66a626d
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.
lib/isc/netmgr/tcp.c