dovecot-2.0: lib-lda: Fixed error handling if newly delivered ma...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Oct 6 20:57:51 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/74ede782269d
changeset: 12252:74ede782269d
user: Timo Sirainen <tss at iki.fi>
date: Wed Oct 06 18:57:16 2010 +0100
description:
lib-lda: Fixed error handling if newly delivered mail couldn't be opened.
Found by Vadim Okun.
diffstat:
src/lib-lda/mail-deliver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ab2222fd3f5d -r 74ede782269d src/lib-lda/mail-deliver.c
--- a/src/lib-lda/mail-deliver.c Wed Oct 06 18:20:26 2010 +0100
+++ b/src/lib-lda/mail-deliver.c Wed Oct 06 18:57:16 2010 +0100
@@ -229,7 +229,7 @@
t = mailbox_transaction_begin(box, 0);
ctx->dest_mail = mail_alloc(t, MAIL_FETCH_STREAM_BODY,
NULL);
- if (mail_set_uid(ctx->dest_mail, range[0].seq1) < 0) {
+ if (!mail_set_uid(ctx->dest_mail, range[0].seq1)) {
mail_free(&ctx->dest_mail);
mailbox_transaction_rollback(&t);
}
More information about the dovecot-cvs
mailing list