mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-14 01:57:27 +03:00
resolved: fix sorting of RRsets
We actually maintain an array of pointers to RRs, not of RRs themselves, fix the qsort() invocation accordingly.
This commit is contained in:
parent
2f763887b8
commit
6c5e8fbf4e
@ -327,7 +327,7 @@ int dnssec_verify_rrset(
|
||||
return -ENODATA;
|
||||
|
||||
/* Bring the RRs into canonical order */
|
||||
qsort_safe(list, n, sizeof(DnsResourceRecord), rr_compare);
|
||||
qsort_safe(list, n, sizeof(DnsResourceRecord*), rr_compare);
|
||||
|
||||
/* OK, the RRs are now in canonical order. Let's calculate the digest */
|
||||
switch (rrsig->rrsig.algorithm) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user