mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
urlapi: accept 0X prefix in IPv4 address as well
Extend test 1560 accordingly Closes #21820
This commit is contained in:
parent
780ccb256e
commit
1b6724882c
2 changed files with 4 additions and 1 deletions
|
|
@ -520,7 +520,7 @@ UNITTEST int ipv4_normalize(struct dynbuf *host)
|
|||
int rc;
|
||||
curl_off_t l;
|
||||
if(*c == '0') {
|
||||
if(c[1] == 'x') {
|
||||
if(Curl_raw_tolower(c[1]) == 'x') {
|
||||
c += 2; /* skip the prefix */
|
||||
rc = curlx_str_hex(&c, &l, UINT_MAX);
|
||||
if(rc)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue