From 979cdf9b64ea7b7eb4b66e38c8945ec53bef9e97 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Tue, 21 Jan 2014 16:26:41 +0000 Subject: [PATCH] Fix to hostname_cmp, and update to canonicalisation table. RFC 4034 LIES. --- src/dnssec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/dnssec.c b/src/dnssec.c index 9cc146f..d61eff9 100644 --- a/src/dnssec.c +++ b/src/dnssec.c @@ -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;