]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-cmd-data - Add comment to pipeline state assertion.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 13 Apr 2021 16:25:31 +0000 (18:25 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sun, 22 Aug 2021 08:07:25 +0000 (08:07 +0000)
src/lib-smtp/smtp-server-cmd-data.c

index ae4ab32534bccca32c3e5d5fe2e0dae2368a2623..9183eca4f7e906ad81ac97b8f4d117bec1258fc9 100644 (file)
@@ -350,6 +350,9 @@ cmd_data_next(struct smtp_server_cmd_ctx *cmd,
 
        i_assert(data_cmd != NULL);
        i_assert(trans != NULL);
+
+       /* DATA command stops the pipeline, so if it is next to reply, nothing
+          else can be pending. */
        i_assert(conn->state.pending_mail_cmds == 0 &&
                conn->state.pending_rcpt_cmds == 0);