]> git.ipfire.org Git - thirdparty/bind9.git/commit
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)
commit2955bb90c885d758addff2882e6d48bdaa500bd4
tree3575c236941dfa218ce29b6146c53999e9f15866
parent93fa62c3e0b95d7a9d68d974ed5dd54b84fbd49a
parent6998fe42e354fc476618856a5bb7e96f0de6b204
chg: dev: Add RRSIG if required as soon as they are found

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