]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: DATA command: Assert that the server transaction flags are correct for LMTP.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 12 Oct 2018 07:34:56 +0000 (09:34 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:41:17 +0000 (15:41 +0200)
src/lmtp/commands.c

index 95c4145067a6e9be893e3a2e0bb80093bb0906c6..299e94002f3c3c8c461c157cd978b9598f9ac416 100644 (file)
@@ -103,6 +103,9 @@ cmd_data_finish(struct client *client,
        struct istream *input_msg, *input_local, *input_proxy;
        struct istream *inputs[3];
 
+       i_assert(HAS_ALL_BITS(trans->flags,
+                             SMTP_SERVER_TRANSACTION_FLAG_REPLY_PER_RCPT));
+
        client->state.data_end_timeval = ioloop_timeval;
 
        /* finish the message */