From 284d06df9e45a97043e6cf6c915d7eb15622c1e4 Mon Sep 17 00:00:00 2001
From: Michael Kaufmann <mail@michael-kaufmann.ch>
Date: Sun, 24 Sep 2017 15:02:12 +0200
Subject: [PATCH] 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
---
 lib/url.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index e3b41528d9..9ad503dbd9 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;