summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-09 18:07:55 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-10 11:35:52 +0100
commit6c5e8fbf4e4362c7d6db43e316880a16b1ebd620 (patch)
tree3cb5e93cdd85f556dd66071624df862626a6b5ec /src
parent2f763887b8696f2fd2d577bfbd011f3b2e889c1a (diff)
resolved: fix sorting of RRsets
We actually maintain an array of pointers to RRs, not of RRs themselves, fix the qsort() invocation accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/resolve/resolved-dns-dnssec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c
index 1f2977fba1..75797db6c8 100644
--- a/src/resolve/resolved-dns-dnssec.c
+++ b/src/resolve/resolved-dns-dnssec.c
@@ -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) {