diff options
author | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-09-24 15:02:12 +0200 |
---|---|---|
committer | Michael Kaufmann <mail@michael-kaufmann.ch> | 2017-09-28 21:18:02 +0200 |
commit | 284d06df9e45a97043e6cf6c915d7eb15622c1e4 (patch) | |
tree | 0a3ce0f2a2a667aabd1fb25ee647a8c9cc28f25f /lib | |
parent | 6aa86c493bd77b70d1f5018e102bc3094290d588 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |