]> 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)
committerOndřej Surý <ondrej@isc.org>
Thu, 1 Oct 2020 14:44:43 +0000 (16:44 +0200)
commit80569bf9779581f4a88c2d4d352f302aee450f8d
tree8bb69433244ca898adf09d6b15847cfb2e5913dc
parent3942b226b8e2e374d8ab47aad2d55e47241f0ff3
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.

(cherry picked from commit 591b79b597435766e474e5bac09cf3957d914ec3)
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcpdns.c