[OpenWrt-Devel] [PATCH 2/3] ustream-ssl: Fix host_pattern_match
Christoph Ziebuhr
chris at codefrickler.de
Mon Dec 1 08:51:33 EST 2014
Signed-off-by: Christoph Ziebuhr <chris at codefrickler.de>
---
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;
}
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list