Skip to content

Commit

Permalink
lib-smtp: client: transaction: Properly advance the transaction to th…
Browse files Browse the repository at this point in the history
…e DATA state once the DATA command is to be sent.
  • Loading branch information
stephanbosch authored and villesavolainen committed Mar 12, 2018
1 parent d3334ed commit f9ef860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-smtp/smtp-client-transaction.c
Expand Up @@ -685,6 +685,8 @@ smtp_client_transaction_send_data(struct smtp_client_transaction *trans)

timeout_remove(&trans->to_send);

trans->state = SMTP_CLIENT_TRANSACTION_STATE_DATA;

if (trans->failure != NULL) {
smtp_client_transaction_fail_reply(trans, trans->failure);
finished = TRUE;
Expand Down

0 comments on commit f9ef860

Please sign in to comment.