1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

URL: on connection re-use, still pick the new remote port

... as when a proxy connection is being re-used, it can still get a
different remote port.

Fixes #1887
Reported-by: Oli Kingshott
This commit is contained in:
Daniel Stenberg 2017-09-14 16:49:40 +02:00
parent 7e4634cfe8
commit 22708eae40
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -6337,6 +6337,7 @@ static void reuse_conn(struct connectdata *old_conn,
conn->conn_to_host = old_conn->conn_to_host;
conn->bits.conn_to_port = old_conn->bits.conn_to_port;
conn->conn_to_port = old_conn->conn_to_port;
conn->remote_port = old_conn->remote_port;
/* persist connection info in session handle */
Curl_persistconninfo(conn);