From 1d728aae2a8211a7a9f9f66073bdd672e7a1d2cc Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 17 Jul 2007 20:59:53 +0000 Subject: Jofell Gallardo posted a libcurl log using FTP that exposed a bug which made a control connection that was deemed "dead" to yet be re-used in a following request. We must make sure the connection gets closed on this situation. --- lib/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ftp.c b/lib/ftp.c index 61e795881..dcea9ad0c 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -3137,7 +3137,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn, CURLcode status, bool premature if(!nread && (CURLE_OPERATION_TIMEDOUT == result)) { failf(data, "control connection looks dead"); ftpc->ctl_valid = FALSE; /* mark control connection as bad */ - return result; + conn->bits.close = TRUE; /* mark for closure */ } if(result) -- cgit v1.2.1