mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-21 11:39:39 +00:00
Fix to hostname_cmp, and update to canonicalisation table. RFC 4034 LIES.
This commit is contained in:
1 parent
dbf721235b
commit
979cdf9b64
1 file changed
+1
-3
+1
-3
@@ -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