Skip to content
Snippets Groups Projects
Commit da3ae20d authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

ftp_doing: bail out on error properly

When a failure has been detected we must abort immdiately.

Bug: http://curl.haxx.se/mail/lib-2011-07/0177.html
Reported by: "Spoon Man"
parent 73548e1d
No related branches found
No related tags found
No related merge requests found
......@@ -4094,12 +4094,13 @@ static CURLcode ftp_dophase_done(struct connectdata *conn,
/* called from multi.c while DOing */
static CURLcode ftp_doing(struct connectdata *conn,
bool *dophase_done)
bool *dophase_done)
{
CURLcode result;
result = ftp_multi_statemach(conn, dophase_done);
CURLcode result = ftp_multi_statemach(conn, dophase_done);
if(*dophase_done) {
if(result)
DEBUGF(infof(conn->data, "DO phase failed\n"));
else if(*dophase_done) {
result = ftp_dophase_done(conn, FALSE /* not connected */);
DEBUGF(infof(conn->data, "DO phase is complete\n"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment