diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2008-12-11 23:27:22 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2008-12-11 23:27:22 +0000 | 
| commit | c0dfe6e51d2bdaa0cf6dedfdad8bd7748f9edd36 (patch) | |
| tree | 757ef78d4a54d06d1838d3f9ecd9490a14196be4 /lib/url.c | |
| parent | 1b4af1f8d821d3be0cb540e94f947841a967d70f (diff) | |
Dan F pointed out that we don't need to scan IPv6 addresses for '%'-letters
in the parse_remote_port() function as the scope id has already been stripped
from the string.
Diffstat (limited to 'lib/url.c')
| -rw-r--r-- | lib/url.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -3724,7 +3724,10 @@ static CURLcode parse_remote_port(struct SessionHandle *data,    char *portptr;    char endbracket; -  if((1 == sscanf(conn->host.name, "[%*45[0123456789abcdefABCDEF:.%]%c", +  /* Note that at this point, the IPv6 address cannot contain any scope +     suffix as that has already been removed in the ParseURLAndFillConnection() +     function */ +  if((1 == sscanf(conn->host.name, "[%*45[0123456789abcdefABCDEF:.]%c",                    &endbracket)) &&       (']' == endbracket)) {      /* this is a RFC2732-style specified IP-address */ | 
