dovecot-1.1: Maildir saving: Fixed a potential crash when saving...

dovecot at dovecot.org dovecot at dovecot.org
Tue Jun 17 12:32:30 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/ef1b8737677b
changeset: 7673:ef1b8737677b
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Jun 17 12:32:25 2008 +0300
description:
Maildir saving: Fixed a potential crash when saving a mail with keywords.

diffstat:

1 file changed, 2 insertions(+), 3 deletions(-)
src/lib-storage/index/maildir/maildir-save.c |    5 ++---

diffs (20 lines):

diff -r 0c0494de3b05 -r ef1b8737677b src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Fri Jun 13 13:10:06 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-save.c	Tue Jun 17 12:32:25 2008 +0300
@@ -608,14 +608,13 @@ maildir_transaction_save_commit_pre_sync
 
 	if (maildir_sync_index_begin(mbox, NULL, &ctx->sync_ctx) < 0)
 		return -1;
+	ctx->keywords_sync_ctx =
+		maildir_sync_get_keywords_sync_ctx(ctx->sync_ctx);
 
 	if (maildir_sync_header_refresh(mbox) < 0)
 		return -1;
 	if (maildir_uidlist_refresh_fast_init(mbox->uidlist) < 0)
 		return 1;
-
-	ctx->keywords_sync_ctx =
-		maildir_sync_get_keywords_sync_ctx(ctx->sync_ctx);
 
 	/* now that uidlist is locked, make sure all the existing mails
 	   have been added to index. we don't really look into the


More information about the dovecot-cvs mailing list