]> 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)
committerOndřej Surý <ondrej@sury.org>
Thu, 25 Apr 2019 13:04:25 +0000 (15:04 +0200)
commitec2d50da8d81814640e28593d912f4b96c7efece
tree582b807cf71e45116979f6d1de2ecd348b6ee3ba
parentf7f3b0cd8c8bff5251c62ecf6004e0ddbb0842f0
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 f97131d21b97381cef72b971b157345c1f9b4115)
(cherry picked from commit 9689ffc485df8f971f0ad81ab8ab1f5389493776)
bin/named/client.c