mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
reuse_conn: don't copy flags that are known to be equal
A connection can only be reused if the flags "conn_to_host" and "conn_to_port" match. Therefore it is not necessary to copy these flags in reuse_conn(). Closes #1918
This commit is contained in:
parent
6aa86c493b
commit
284d06df9e
@ -6333,9 +6333,7 @@ static void reuse_conn(struct connectdata *old_conn,
|
||||
Curl_safefree(conn->host.rawalloc);
|
||||
Curl_safefree(conn->conn_to_host.rawalloc);
|
||||
conn->host = old_conn->host;
|
||||
conn->bits.conn_to_host = old_conn->bits.conn_to_host;
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user