mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 12:50:00 -04:00
Fix assertion failure in dns_db_findrdataset() for SIG records
dns__db_findrdataset() had a REQUIRE() that only accepted
dns_rdatatype_rrsig when the covers parameter was set. A dynamic
update containing a SIG record (type 24) would trigger this
assertion, crashing named. Use dns_rdatatype_issig() to accept
both SIG and RRSIG.
(cherry picked from commit 03edeccaa1)
This commit is contained in:
parent
bb63fd9dac
commit
89c363b555
1 changed files with 2 additions and 1 deletions
|
|
@ -668,7 +668,8 @@ dns_db_findrdataset(dns_db_t *db, dns_dbnode_t *node, dns_dbversion_t *version,
|
|||
REQUIRE(node != NULL);
|
||||
REQUIRE(DNS_RDATASET_VALID(rdataset));
|
||||
REQUIRE(!dns_rdataset_isassociated(rdataset));
|
||||
REQUIRE(covers == 0 || type == dns_rdatatype_rrsig);
|
||||
REQUIRE(covers == dns_rdatatype_none || type == dns_rdatatype_rrsig ||
|
||||
type == dns_rdatatype_sig);
|
||||
REQUIRE(type != dns_rdatatype_any);
|
||||
REQUIRE(sigrdataset == NULL ||
|
||||
(DNS_RDATASET_VALID(sigrdataset) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue