mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
urlapi: accept port number zero
This is a regression since 7.62.0 (fb30ac5a2d).
Updated test 1560 accordingly
Reported-by: Brad Fitzpatrick
Fixes #8090
Closes #8091
This commit is contained in:
parent
f67b4d37b7
commit
92d1aee8b1
2 changed files with 6 additions and 4 deletions
|
|
@ -308,9 +308,13 @@ static const struct testcase get_parts_list[] ={
|
|||
{"https://example.com:65536",
|
||||
"",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_BAD_PORT_NUMBER},
|
||||
{"https://example.com:0#moo",
|
||||
{"https://example.com:-1#moo",
|
||||
"",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_BAD_PORT_NUMBER},
|
||||
{"https://example.com:0#moo",
|
||||
"https | [11] | [12] | [13] | example.com | 0 | / | "
|
||||
"[16] | moo",
|
||||
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK},
|
||||
{"https://example.com:01#moo",
|
||||
"https | [11] | [12] | [13] | example.com | 1 | / | "
|
||||
"[16] | moo",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue