openssl: Fix host_pattern_match
authorChristoph Ziebuhr <chris@codefrickler.de>
Mon, 1 Dec 2014 13:41:35 +0000 (14:41 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 1 Dec 2014 14:55:29 +0000 (15:55 +0100)
Signed-off-by: Christoph Ziebuhr <chris@codefrickler.de>
ustream-openssl.c

index 06053e6fb661556a66da8f4cf7f70349ace2eb5b..635d34ce29726b50f141999f13090d13e4e40be1 100644 (file)
@@ -121,7 +121,7 @@ static bool host_pattern_match(const unsigned char *pattern, const char *cn)
 
        for (; (c = tolower(*pattern++)) != 0; cn++) {
                if (c != '*') {
-                       if (c != *cn)
+                       if (c != tolower(*cn))
                                return false;
                        continue;
                }