]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: smtp-server-transaction - Allow calling smtp_server_transaction_last_data...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 16 Mar 2019 14:13:03 +0000 (15:13 +0100)
committerMartti Rannanjärvi <martti.rannanjarvi@open-xchange.com>
Wed, 25 Sep 2019 08:25:20 +0000 (11:25 +0300)
src/lib-smtp/smtp-server-transaction.c

index 44ea3594ab37e2510796c2298ee392180c224b79..fd57d36e64e94c542000f25f3d4fce2c60cdde99 100644 (file)
@@ -170,7 +170,8 @@ void smtp_server_transaction_last_data(struct smtp_server_transaction *trans,
 
        trans->cmd = cmd;
 
-       i_assert(array_is_created(&trans->rcpt_to));
+       if (!array_is_created(&trans->rcpt_to))
+               return;
        array_foreach(&trans->rcpt_to, rcptp)
                smtp_server_recipient_last_data(*rcptp, cmd);
 }