]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lmtp: Deliver each local mail in its own data stack frame
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Dec 2022 16:25:01 +0000 (18:25 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 11 Jan 2023 22:02:11 +0000 (00:02 +0200)
src/lmtp/lmtp-local.c

index fbf1576d5fa04aa613debb09081da164786f615f..39ea63dc6e3d81092442bb00a40142510b857cbc 100644 (file)
@@ -622,8 +622,10 @@ lmtp_local_deliver_to_rcpts(struct lmtp_local *local,
                        continue;
                }
 
-               ret = lmtp_local_deliver(local, cmd,
-                       trans, llrcpt, src_mail, session);
+               T_BEGIN {
+                       ret = lmtp_local_deliver(local, cmd, trans, llrcpt,
+                                                src_mail, session);
+               } T_END;
                client_update_data_state(client, NULL);
 
                /* succeeded and mail_user is not saved in first_saved_mail */