[dovecot-cvs] dovecot/src/lib-storage/list index-mailbox-list-sync.c, 1.3, 1.4

tss at dovecot.org tss at dovecot.org
Wed Jan 24 12:49:22 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/list
In directory talvi:/tmp/cvs-serv8160

Modified Files:
	index-mailbox-list-sync.c 
Log Message:
Crashfix



Index: index-mailbox-list-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/list/index-mailbox-list-sync.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- index-mailbox-list-sync.c	10 Dec 2006 12:59:45 -0000	1.3
+++ index-mailbox-list-sync.c	24 Jan 2007 12:49:20 -0000	1.4
@@ -62,14 +62,16 @@
 	struct mail_index_sync_ctx *mail_sync_ctx;
 	struct mail_index_view *view;
 	struct mail_index_sync_rec sync_rec;
+	int ret;
 
 	if (ibox->log_seq == 0)
 		return 0;
 
-	if (mail_index_sync_begin(ilist->mail_index, &mail_sync_ctx,
-				  &view, ibox->log_seq, ibox->log_offset,
-				  FALSE, FALSE) < 0)
-		return -1;
+	ret = mail_index_sync_begin(ilist->mail_index, &mail_sync_ctx,
+				    &view, ibox->log_seq, ibox->log_offset,
+				    FALSE, FALSE);
+	if (ret <= 0)
+		return ret;
 
 	/* we should have only external transactions in here, for which we
 	   don't need to do anything but write them to the index */



More information about the dovecot-cvs mailing list