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;
|
return -ENODATA;
|
||||||
|
|
||||||
/* Bring the RRs into canonical order */
|
/* 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 */
|
/* OK, the RRs are now in canonical order. Let's calculate the digest */
|
||||||
switch (rrsig->rrsig.algorithm) {
|
switch (rrsig->rrsig.algorithm) {
|
||||||
|
|
Loading…
Reference in a new issue