Skip to content
Snippets Groups Projects
Commit 36837c10 authored by Steve Holme's avatar Steve Holme
Browse files

smtp_doing: don't call smtp_dophase_done() if already failed

Applied the POP3 fix from commit 2897ce7d so smtp_dophase_done()
isn't called if smtp_multi_statemach() fails.
parent f947de4b
No related branches found
No related tags found
No related merge requests found
...@@ -1591,11 +1591,13 @@ static CURLcode smtp_doing(struct connectdata *conn, bool *dophase_done) ...@@ -1591,11 +1591,13 @@ static CURLcode smtp_doing(struct connectdata *conn, bool *dophase_done)
if(result) if(result)
DEBUGF(infof(conn->data, "DO phase failed\n")); DEBUGF(infof(conn->data, "DO phase failed\n"));
else else {
DEBUGF(infof(conn->data, "DO phase is complete\n")); if(*dophase_done) {
result = smtp_dophase_done(conn, FALSE /* not connected */);
if(*dophase_done) DEBUGF(infof(conn->data, "DO phase is complete\n"));
smtp_dophase_done(conn, FALSE /* not connected */); }
}
return result; return result;
} }
......
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