mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Nasty, rare and obscure off-by-one in DNSSEC hostname_cmp().
This commit is contained in:
@@ -1394,8 +1394,8 @@ static int hostname_cmp(const char *a, const char *b)
|
|||||||
if (sb == b)
|
if (sb == b)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
ea = sa--;
|
ea = --sa;
|
||||||
eb = sb--;
|
eb = --sb;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user