aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smtp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index aa4f6bd39..5b2d9d38d 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1840,14 +1840,15 @@ static CURLcode smtp_dophase_done(struct connectdata *conn, bool connected)
/* called from multi.c while DOing */
static CURLcode smtp_doing(struct connectdata *conn, bool *dophase_done)
{
- CURLcode result;
- result = smtp_multi_statemach(conn, dophase_done);
-
- if(*dophase_done) {
- result = smtp_dophase_done(conn, FALSE /* not connected */);
+ CURLcode result = smtp_multi_statemach(conn, dophase_done);
+ if(result)
+ DEBUGF(infof(conn->data, "DO phase failed\n"));
+ else
DEBUGF(infof(conn->data, "DO phase is complete\n"));
- }
+
+ if(*dophase_done)
+ smtp_dophase_done(conn, FALSE /* not connected */);
return result;
}