]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make netmgr tcpdns send calls asynchronous.
authorWitold Kręcicki <wpk@isc.org>
Tue, 16 Jun 2020 17:56:12 +0000 (19:56 +0200)
committerEvan Hunt <each@isc.org>
Fri, 26 Jun 2020 08:18:27 +0000 (01:18 -0700)
commit97e44fa3df79acb4a88f45ce9d9004a79687520a
treebb586c36535f91702b9f49fe1553ac31526a3b59
parentd761cd576bd61f6118341aa35edf4870f8775f8c
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 the whole tcpdns
processing to a proper netmgr thread.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcpdns.c