mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix rrset qsort comparison function.
This commit is contained in:
committed by
Simon Kelley
parent
b573aebc09
commit
0decc869ae
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user