mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix to hostname_cmp, and update to canonicalisation table. RFC 4034 LIES.
This commit is contained in:
@@ -346,8 +346,6 @@ static u16 *get_desc(int type)
|
||||
T_KX, 2, 0, -1,
|
||||
T_SRV, 6, 0, -1,
|
||||
T_DNAME, 0, -1,
|
||||
T_RRSIG, 18, 0, -1,
|
||||
T_NSEC, 0, -1,
|
||||
0, -1 /* wildcard/catchall */
|
||||
};
|
||||
|
||||
@@ -989,7 +987,7 @@ static int hostname_cmp(const char *a, const char *b)
|
||||
if (bc >= 'A' && bc <= 'Z')
|
||||
bc += 'a' - 'A';
|
||||
|
||||
if (ac > bc)
|
||||
if (ac < bc)
|
||||
return -1;
|
||||
else if (ac != bc)
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user