]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make netmgr tcpdns send calls asynchronous
authorEvan Hunt <each@isc.org>
Mon, 22 Jun 2020 23:45:47 +0000 (16:45 -0700)
committerEvan Hunt <each@isc.org>
Fri, 26 Jun 2020 07:19:42 +0000 (00:19 -0700)
commit591b79b597435766e474e5bac09cf3957d914ec3
treeafc4177fd7fdf802628fb13df2578962a4f23e60
parent1cf65cd8829f01cc38f47b1180d7fbe3ab710d35
Make netmgr tcpdns send calls asynchronous

isc__nm_tcpdns_send() was not asynchronous and accessed socket
internal fields in an unsafe manner, which could lead to a race
condition and subsequent crash. Fix it by moving tcpdns processing
to a proper netmgr thread.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcpdns.c