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:
Lennart Poettering 2015-12-09 18:07:55 +01:00
parent 2f763887b8
commit 6c5e8fbf4e
1 changed files with 1 additions and 1 deletions

View File

@ -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) {