connect: Close temporary sockets in conn_free()
The temporary sockets used for Happy Eyeballs were not closed properly, if curl exited prematurely, which this patch fixes.
This commit is contained in:
committed by
Steve Holme
parent
c8e63f247a
commit
e7d77fb3ef
@@ -1866,7 +1866,6 @@ static CURLcode proxy_magic(struct connectdata *conn,
|
||||
if(conn->tunnel_state[SECONDARYSOCKET] != TUNNEL_COMPLETE) {
|
||||
/* the CONNECT procedure is not complete, the tunnel is not yet up */
|
||||
state(conn, FTP_STOP); /* this phase is completed */
|
||||
conn->bits.tcpconnect[SECONDARYSOCKET] = FALSE;
|
||||
return result;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user