diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 18:21:58 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-07 18:21:58 +0000 |
commit | 67b6fa5f95e4e938ad0b0209d42c148ef29c04d2 (patch) | |
tree | b182c6184a810b041eb3a394a5e04d681a4549b4 /lib/smtp.c | |
parent | 3df1e3583881af7714c6992cba4f8881a33265cf (diff) | |
download | curl-67b6fa5f95e4e938ad0b0209d42c148ef29c04d2.tar.gz |
email: Optimised block_statemach() functions
Optimised the result test in each of the block_statemach() functions.
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 4 |
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; |