aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-17 20:59:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-17 20:59:53 +0000
commit1d728aae2a8211a7a9f9f66073bdd672e7a1d2cc (patch)
tree8224def10df7d6187d76999925c32e9a3a64154d /lib
parent98b9349be789af03bf5c311cb996eb55cc3aa12b (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
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)