]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: server: Remove inappropriate assert from MAIL command.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 15 Feb 2018 23:44:07 +0000 (00:44 +0100)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Mar 2018 08:42:40 +0000 (10:42 +0200)
When the MAIL command is next to reply, it is possible to have RCPT commands
that are still pending.

src/lib-smtp/smtp-server-cmd-mail.c

index 50f50d9aa1a3acab954ca1aa8216d392d62e64f7..1efbba84e9dbd25cea9c9419de9cb44331a9353f 100644 (file)
@@ -53,8 +53,6 @@ static void cmd_mail_recheck(struct smtp_server_cmd_ctx *cmd)
 {
        struct smtp_server_connection *conn = cmd->conn;
 
-       i_assert(conn->state.pending_rcpt_cmds == 0);
-
        /* all preceeding commands have finished and now the transaction state
           is clear. This provides the opportunity to re-check the transaction
           state */