]> granicus.if.org Git - curl/commitdiff
urlapi: one colon is enough for the strspn() input (typo)
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2019 09:51:51 +0000 (11:51 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Sep 2019 09:51:51 +0000 (11:51 +0200)
lib/urlapi.c

index 03efccd7b448c7c36cb34765cec9553736389930..a0ee331dabc7120a0422a9ea5b26f756150c3b94 100644 (file)
@@ -597,7 +597,7 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname)
 
   if(hostname[0] == '[') {
     char dest[16]; /* fits a binary IPv6 address */
-    const char *l = "0123456789abcdefABCDEF::.";
+    const char *l = "0123456789abcdefABCDEF:.";
     hostname++;
     hlen -= 2;