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

View file

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