[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-sync.c, 1.77.2.10, 1.77.2.11

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


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

Modified Files:
      Tag: branch_1_0
	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.77.2.10
retrieving revision 1.77.2.11
diff -u -d -r1.77.2.10 -r1.77.2.11
--- maildir-sync.c	23 Mar 2007 03:07:05 -0000	1.77.2.10
+++ maildir-sync.c	23 Mar 2007 15:53:12 -0000	1.77.2.11
@@ -481,6 +481,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