aboutsummaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/smtp.c b/lib/smtp.c
index c4558646f..15e00a98c 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -1254,10 +1254,8 @@ static CURLcode smtp_block_statemach(struct connectdata *conn)
CURLcode result = CURLE_OK;
struct smtp_conn *smtpc = &conn->proto.smtpc;
- while(smtpc->state != SMTP_STOP) {
+ while(smtpc->state != SMTP_STOP && !result) {
result = Curl_pp_statemach(&smtpc->pp, TRUE);
- if(result)
- break;
}
return result;