Skip to content

Commit

Permalink
lda: Deinitialize cleanly if mail delivery fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 22, 2018
1 parent 505491d commit af55d18
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lda/main.c
Expand Up @@ -517,9 +517,6 @@ int main(int argc, char *argv[])

ret = lda_deliver(&ctx, service_user, user, path,
rcpt_to, rcpt_to_source, stderr_rejection);
if (ret != EX_OK)
return ret;

{
struct mailbox_transaction_context *t =
ctx.src_mail->transaction;
Expand All @@ -536,5 +533,5 @@ int main(int argc, char *argv[])
mail_storage_service_user_unref(&service_user);
mail_storage_service_deinit(&storage_service);
master_service_deinit(&master_service);
return EX_OK;
return ret;
}

0 comments on commit af55d18

Please sign in to comment.