]> git.ipfire.org Git - thirdparty/bind9.git/commit
Reset the TCP connection when garbage is received
authorOndřej Surý <ondrej@isc.org>
Tue, 15 Feb 2022 13:41:15 +0000 (14:41 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 17 Feb 2022 19:39:55 +0000 (20:39 +0100)
commit4716c56ebb4e537845fb4753cba004f5b01923c6
treef4b40b143cc2844f5a1b2a05bd41d85eab9df745
parent0697288b9daf14d60b4ea140c505ba9b5f286e34
Reset the TCP connection when garbage is received

When invalid DNS message is received, there was a handling mechanism for
DoH that would be called to return proper HTTP response.

Reuse this mechanism and reset the TCP connection when the client is
blackholed, DNS message is completely bogus or the ns_client receives
response instead of query.
lib/isc/netmgr/netmgr-int.h
lib/isc/netmgr/netmgr.c
lib/ns/client.c