[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.94, 1.95

tss at dovecot.org tss at dovecot.org
Fri Mar 23 17:53:17 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv15102

Modified Files:
	maildir-sync.c 
Log Message:
If saving to maildir causes flag/expunge syncs, don't crash.



Index: maildir-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-sync.c,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- maildir-sync.c	23 Mar 2007 03:07:08 -0000	1.94
+++ maildir-sync.c	23 Mar 2007 15:53:15 -0000	1.95
@@ -478,6 +478,12 @@
 {
 	time_t now;
 
+	if (ctx == NULL) {
+		/* we got here from maildir-save.c. it has no
+		   maildir_sync_context,  */
+		return;
+	}
+
 	if (move) {
 		ctx->move_count++;
 		if ((ctx->move_count % MAILDIR_SLOW_MOVE_COUNT) != 0)



More information about the dovecot-cvs mailing list