mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-03 14:00:47 -05:00
Move REQUIRE outside comment unsupported alg
This commit is contained in:
parent
34c0948aa7
commit
5ca649967e
2 changed files with 6 additions and 4 deletions
|
|
@ -1623,10 +1623,11 @@ dns_dnssec_keylistfromrdataset(const dns_name_t *origin,
|
|||
dns_rdata_reset(&rdata);
|
||||
dns_rdataset_current(&keys, &rdata);
|
||||
|
||||
/* Skip unsupported algorithms */
|
||||
REQUIRE(rdata.type == dns_rdatatype_key ||
|
||||
rdata.type == dns_rdatatype_dnskey);
|
||||
REQUIRE(rdata.length > 3);
|
||||
|
||||
/* Skip unsupported algorithms */
|
||||
if (!dst_algorithm_supported(rdata.data[3]))
|
||||
goto skip;
|
||||
|
||||
|
|
|
|||
|
|
@ -1813,12 +1813,13 @@ dns_nsec3_maxiterations(dns_db_t *db, dns_dbversion_t *version,
|
|||
dns_rdata_t rdata = DNS_RDATA_INIT;
|
||||
dns_rdataset_current(&rdataset, &rdata);
|
||||
|
||||
/* Skip unsupported algorithms when
|
||||
* calculating the maximum iterations.
|
||||
*/
|
||||
REQUIRE(rdata.type == dns_rdatatype_key ||
|
||||
rdata.type == dns_rdatatype_dnskey);
|
||||
REQUIRE(rdata.length > 3);
|
||||
|
||||
/* Skip unsupported algorithms when
|
||||
* calculating the maximum iterations.
|
||||
*/
|
||||
if (!dst_algorithm_supported(rdata.data[3]))
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue