]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix enforcement of tcp-clients (v1)
authorWitold Kręcicki <wpk@isc.org>
Thu, 3 Jan 2019 13:17:43 +0000 (14:17 +0100)
committerEvan Hunt <each@isc.org>
Fri, 5 Apr 2019 22:52:41 +0000 (15:52 -0700)
commit264384fbb9e722dff2d78d48bb00b4f6290bc51c
treef39c5bf4b62651223402bcddec8e98c9d7ac4f7d
parent2af984417923881fff834f721c63cb12a9235855
fix enforcement of tcp-clients (v1)

tcp-clients settings could be exceeded in some cases by
creating more and more active TCP clients that are over
the set quota limit, which in the end could lead to a
DoS attack by e.g. exhaustion of file descriptors.

If TCP client we're closing went over the quota (so it's
not attached to a quota) mark it as mortal - so that it
will be destroyed and not set up to listen for new
connections - unless it's the last client for a specific
interface.

(cherry picked from commit 9ef6eb4c37ed909c8e2a5508c3b3e510b7b13b85)
lib/ns/client.c