]> granicus.if.org Git - curl/commit
CURLOPT_CONNECT_TO: Skip non-matching "connect-to" entries properly
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Wed, 30 Nov 2016 10:51:29 +0000 (11:51 +0100)
committerMichael Kaufmann <mail@michael-kaufmann.ch>
Wed, 30 Nov 2016 11:02:44 +0000 (12:02 +0100)
commitb34ea05d9d856c421be3a0f70ab84c6ad28e3f37
treeaccab68e355bc0c217000f7a2abdcfa9ed8e80e1
parent12d6794b103623e432beda441a6d3c56993d948b
CURLOPT_CONNECT_TO: Skip non-matching "connect-to" entries properly

If a port number in a "connect-to" entry does not match, skip this
entry instead of connecting to port 0.

If a port number in a "connect-to" entry matches, use this entry
and look no further.

Reported-by: Jay Satiro
Assisted-by: Jay Satiro, Daniel Stenberg
Closes #1148
lib/url.c
tests/data/Makefile.inc
tests/data/test2053 [new file with mode: 0644]
tests/data/test2054 [new file with mode: 0644]