The attached Patch also removes the square brackets

--- openssl-1.0.1/crypto/ocsp/ocsp_lib.c.orig_1.0.1	2012-04-04 15:41:33.133314951 +0200
+++ openssl-1.0.1/crypto/ocsp/ocsp_lib.c	2012-04-04 16:02:49.765314655 +0200
@@ -222,8 +222,19 @@ int OCSP_parse_url(char *url, char **pho
 
 	if (!*ppath) goto mem_err;
 
+	p = host;
+	if(host[0] == '[')
+		{
+		/* ipv6 litteral */
+		host++;
+		p = strchr(host, ']');
+		if(!p) goto parse_err;
+		*p = '\0';
+		p++;
+		}
+
 	/* Look for optional ':' for port number */
-	if ((p = strchr(host, ':')))
+	if ((p = strchr(p, ':')))
 		{
 		*p = 0;
 		port = p + 1;

Reply via email to