aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorBjörn Stenberg <bjst@bjorn>2013-11-08 00:09:20 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-11-10 22:49:56 +0000
commite7d77fb3ef14bac8690f343327b302f866ac53f2 (patch)
treef6447320eb2516c46c53405718601cad61efa965 /lib/ftp.c
parentc8e63f247aa14a6721b0d04f444d258e690b0dc8 (diff)
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.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 8879ff1d9..abd70e070 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -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