]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add a limit to the number of RR types for single name
authorOndřej Surý <ondrej@isc.org>
Wed, 29 May 2024 06:43:39 +0000 (08:43 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 5 Jun 2024 07:02:14 +0000 (09:02 +0200)
commit3f10d6eff035702796ba82cd28b9f7cf9836e743
tree616f169b7de3d75e187f3a97cd49bceae4d025ba
parentb9b5485b22c364fb88c27aa04bad4c8f616da3fa
Add a limit to the number of RR types for single name

Previously, the number of RR types for a single owner name was limited
only by the maximum number of the types (64k).  As the data structure
that holds the RR types for the database node is just a linked list, and
there are places where we just walk through the whole list (again and
again), adding a large number of RR types for a single owner named with
would slow down processing of such name (database node).

Add a hard-coded limit (100) to cap the number of the RR types for a single
owner.  The limit can be changed at the compile time by adding following
define to CFLAGS:

    -DDNS_RBTDB_MAX_RTYPES=<limit>

(cherry picked from commit 538b843d84f49ba5125ff545e3d0cf1c8434a8f2)
configure
configure.ac
lib/dns/rbtdb.c