aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kaufmann <mail@michael-kaufmann.ch>2017-09-24 15:02:12 +0200
committerMichael Kaufmann <mail@michael-kaufmann.ch>2017-09-28 21:18:02 +0200
commit284d06df9e45a97043e6cf6c915d7eb15622c1e4 (patch)
tree0a3ce0f2a2a667aabd1fb25ee647a8c9cc28f25f
parent6aa86c493bd77b70d1f5018e102bc3094290d588 (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
-rw-r--r--lib/url.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/url.c b/lib/url.c
index e3b41528d..9ad503dbd 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;