diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-05-28 16:17:51 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-05-28 23:00:42 +0200 |
commit | a6183ab23a702f45b14affe7ab25996960cd8b1b (patch) | |
tree | 24381f33f36ced0c0388267d2829faa4357d1fe0 /lib/url.c | |
parent | 2f11fbf208c78d38e9a19b1224238c4ecff5989f (diff) | |
download | curl-a6183ab23a702f45b14affe7ab25996960cd8b1b.tar.gz |
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
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2027,7 +2027,7 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data, } else { unsigned long port = strtoul(data->state.up.port, NULL, 10); - conn->remote_port = curlx_ultous(port); + conn->port = conn->remote_port = curlx_ultous(port); } (void)curl_url_get(uh, CURLUPART_QUERY, &data->state.up.query, 0); |