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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user