]> 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>
Sat, 6 Apr 2019 19:58:00 +0000 (12:58 -0700)
commit9e7617cc84f465769be1a3f426f30cd516220902
treeb5456132afa30558ef6a8979031dcd4c80dc75bf
parent94ba15ea38c04997589b3c0189a33bf469d6f719
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 eafcff07c25bdbe038ae1e4b6660602a080b9395)
lib/ns/client.c