]> git.ipfire.org Git - thirdparty/bind9.git/commit
Optimize cname_and_other_data to stop as earliest as possible
authorOndřej Surý <ondrej@isc.org>
Mon, 29 Jan 2024 15:36:30 +0000 (16:36 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 8 Feb 2024 08:42:52 +0000 (09:42 +0100)
commitf654ed7a0559cf7cad0e27f5b2a808fef7dccac9
tree93570d9938e15021613a5805da64aea084b03283
parent8ef414a7f38a04cfc11df44adaedaf3126fa3878
Optimize cname_and_other_data to stop as earliest as possible

Stop the cname_and_other_data processing if we already know that the
result is true.  Also, we know that CNAME will be placed in the priority
headers, so we can stop looking for CNAME if we haven't found CNAME and
we are past the priority headers.

(cherry picked from commit 3f774c2a8ac46b2bbf1b3a4fa1d8d8c3ed3d78a9)
bin/tests/system/resolver/tests.sh
lib/dns/rbtdb.c