]> granicus.if.org Git - curl/commit
url: default conn->port to the same as conn->remote_port
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 May 2019 14:17:51 +0000 (16:17 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 May 2019 21:00:42 +0000 (23:00 +0200)
commita6183ab23a702f45b14affe7ab25996960cd8b1b
tree24381f33f36ced0c0388267d2829faa4357d1fe0
parent2f11fbf208c78d38e9a19b1224238c4ecff5989f
url: default conn->port to the same as conn->remote_port

... so that it has a sensible value when ConnectionExists() is called which
needs it set to differentiate host "bundles" correctly on port number!

Also, make conncache:hashkey() use correct port for bundles that are proxy vs
host connections.

Probably a regression from 7.62.0

Reported-by: Tom van der Woerdt
Fixes #3956
Closes #3957
lib/conncache.c
lib/url.c