From bc3fcb4696c2bea7f4076d7dfe3ce962555d7f2a Mon Sep 17 00:00:00 2001 From: mancha Date: Sun, 15 Jul 2012 23:27:53 +0200 Subject: [PATCH] Fix hostname verification code. [ From bug 1123 attachment 569. --KON ] --- src/network/ssl/match-hostname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/ssl/match-hostname.c b/src/network/ssl/match-hostname.c index 9a64bb40..80d93b02 100644 --- a/src/network/ssl/match-hostname.c +++ b/src/network/ssl/match-hostname.c @@ -97,7 +97,7 @@ match_hostname_pattern(const unsigned char *hostname, * '*' must not match such characters. * Do the same if invalid UTF-8 is found. * Cast away const. */ - uni = utf8_to_unicode((unsigned char **) hostname, + uni = utf8_to_unicode((unsigned char **) &hostname, hostname_end); if (uni == 0x002E || uni == 0x3002