mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
resoled: dnssec - don't refuse to verify answer due to too many unrelated RRs
Let VERIFY_RRS_MAX be about the max number of RRs in an RRSet that we actually try to verify, not about the total number of RRs in the RRSet.
This commit is contained in:
parent
ac04adbeb9
commit
935a999f7d
@ -525,9 +525,6 @@ int dnssec_verify_rrset(
|
||||
if (md_algorithm < 0)
|
||||
return md_algorithm;
|
||||
|
||||
if (a->n_rrs > VERIFY_RRS_MAX)
|
||||
return -E2BIG;
|
||||
|
||||
r = dnssec_rrsig_expired(rrsig, realtime);
|
||||
if (r < 0)
|
||||
return r;
|
||||
@ -552,6 +549,9 @@ int dnssec_verify_rrset(
|
||||
return r;
|
||||
|
||||
list[n++] = rr;
|
||||
|
||||
if (n > VERIFY_RRS_MAX)
|
||||
return -E2BIG;
|
||||
}
|
||||
|
||||
if (n <= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user