Commit 284d06df authored by Michael Kaufmann's avatar Michael Kaufmann
Browse files

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
parent 6aa86c49
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;