From: Christoph Ziebuhr Date: Mon, 1 Dec 2014 13:41:35 +0000 (+0100) Subject: openssl: Fix host_pattern_match X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=02d7535a45290974e7ed51afc90cf2b562c4c74c;p=oweals%2Fopenwrt-ustream-ssl.git openssl: Fix host_pattern_match Signed-off-by: Christoph Ziebuhr --- diff --git a/ustream-openssl.c b/ustream-openssl.c index 06053e6..635d34c 100644 --- a/ustream-openssl.c +++ b/ustream-openssl.c @@ -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; }