From 02d7535a45290974e7ed51afc90cf2b562c4c74c Mon Sep 17 00:00:00 2001 From: Christoph Ziebuhr Date: Mon, 1 Dec 2014 14:41:35 +0100 Subject: [PATCH] openssl: Fix host_pattern_match Signed-off-by: Christoph Ziebuhr --- ustream-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.11.0