]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix more races between connect and shutdown
authorOndřej Surý <ondrej@sury.org>
Thu, 29 Oct 2020 11:04:00 +0000 (12:04 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 30 Oct 2020 10:11:54 +0000 (11:11 +0100)
commited3ab63f749cb5eefb3b4b0156b4afdbf9c22b35
treecab38f324a0e3e6324f902a7507eab97bfc23d93
parent6cfadf9db037efa57d84803601891a33a85a8d8e
Fix more races between connect and shutdown

There were more races that could happen while connecting to a
socket while closing or shutting down the same socket.  This
commit introduces a .closing flag to guard the socket from
being closed twice.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/udp.c