From e7d77fb3ef14bac8690f343327b302f866ac53f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Fri, 8 Nov 2013 00:09:20 +0100 Subject: 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. --- lib/ftp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/ftp.c') 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 -- cgit v1.2.3