]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Add RRSIG if required as soon as they are found
authorColin Vidal <colin@isc.org>
Wed, 3 Dec 2025 15:26:22 +0000 (16:26 +0100)
committerColin Vidal <colin@isc.org>
Wed, 3 Dec 2025 15:26:22 +0000 (16:26 +0100)
When EDNS DO flag (`dig +dnssec`) flag is set, an rdataset is allocated
to hold the RRSIG of an RR, if present in DB. However, this allocation
is not done if the zone DB is not considered as secure
(`dns_db_issecure() == false`). Changes this behaviour by allocating the
rdataset anyway, so the RRSIG can be associated in the answer section of
the response as soon it is found from the DB.

The fact we attach the rrsig potentially more often (though it probably
occurs in edge cases) doesn't seems to affect performance in any ways:

Merge branch 'colin/rrsig-nonsecure-db' into 'main'

See merge request isc-projects/bind9!11317


Trivial merge