From: Lennart Poettering Date: Wed, 9 Dec 2015 17:07:55 +0000 (+0100) Subject: resolved: fix sorting of RRsets X-Git-Tag: v229~217^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c5e8fbf4e4362c7d6db43e316880a16b1ebd620;p=thirdparty%2Fsystemd.git resolved: fix sorting of RRsets We actually maintain an array of pointers to RRs, not of RRs themselves, fix the qsort() invocation accordingly. --- diff --git a/src/resolve/resolved-dns-dnssec.c b/src/resolve/resolved-dns-dnssec.c index 1f2977fba1f..75797db6c82 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) {