]> granicus.if.org Git - curl/commit
urlapi: Fix port parsing of eol colon
authorDaniel Gustafsson <daniel@yesql.se>
Wed, 12 Dec 2018 10:45:09 +0000 (11:45 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Wed, 12 Dec 2018 10:48:04 +0000 (11:48 +0100)
commitd8607da1a68f2482302ccdbb7cf457210b9ccfc9
tree7cdaccafe732cc2e6925bc93c684754587ec1718
parent4258dc02d86e7e4de9f795a1af3a0bc6732d4ab5
urlapi: Fix port parsing of eol colon

A URL with a single colon without a portnumber should use the default
port, discarding the colon. Fix, add a testcase and also do little bit
of comment wordsmithing.

Closes #3365
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
lib/urlapi.c
tests/unit/unit1653.c