]> git.ipfire.org Git - thirdparty/bind9.git/commit
netmgr: fix a non-thread-safe access to libuv structures
authorWitold Kręcicki <wpk@isc.org>
Thu, 16 Jan 2020 11:13:28 +0000 (12:13 +0100)
committerWitold Kręcicki <wpk@isc.org>
Mon, 20 Jan 2020 21:28:36 +0000 (22:28 +0100)
commitf75a9e32be18788bec50d714f76f538dfe366b19
treec0e80a2c8ac301689922cf32096e9a94e38b2ad6
parent16908ec3d912f0ca7e01edf95685eb91a52b4f08
netmgr: fix a non-thread-safe access to libuv structures

In tcp and udp stoplistening code we accessed libuv structures
from a different thread, which caused a shutdown crash when named
was under load. Also added additional DbC checks making sure we're
in a proper thread when accessing uv_ functions.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/tcp.c
lib/isc/netmgr/udp.c