Commit 0decc869 authored by Giovanni Bajo's avatar Giovanni Bajo Committed by Simon Kelley

Fix rrset qsort comparison function.

parent b573aebc
...@@ -98,7 +98,7 @@ static int check_date_range(unsigned long date_start, unsigned long date_end) ...@@ -98,7 +98,7 @@ static int check_date_range(unsigned long date_start, unsigned long date_end)
static int rrset_canonical_order(const void *r1, const void *r2) static int rrset_canonical_order(const void *r1, const void *r2)
{ {
int r1len, r2len, res; int r1len, r2len, res;
const unsigned char *pr1=r1, *pr2=r2; const unsigned char *pr1=*(unsigned char**)r1, *pr2=*(unsigned char**)r2;
pr1 += 8; pr2 += 8; pr1 += 8; pr2 += 8;
GETSHORT(r1len, pr1); GETSHORT(r2len, pr2); GETSHORT(r1len, pr1); GETSHORT(r2len, pr2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment