Skip to content
Permalink
Browse files

urlapi: one colon is enough for the strspn() input (typo)

  • Loading branch information...
bagder committed Sep 10, 2019
1 parent eab3c58 commit 9637dbfffdb42f5478cf8c0afe337f559513a7fe
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/urlapi.c
@@ -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;

0 comments on commit 9637dbf

Please sign in to comment.
You can’t perform that action at this time.