summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ustream-openssl.c2
1 files changed, 1 insertions, 1 deletions
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;
}