[dovecot-cvs] dovecot/src/lib-index mail-index-sync.c,1.29,1.30
cras at dovecot.org
cras at dovecot.org
Tue Aug 24 08:19:24 EEST 2004
Update of /home/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv9015/src/lib-index
Modified Files:
mail-index-sync.c
Log Message:
Don't crash if flag update record gets completely overlapped by expunges.
Index: mail-index-sync.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-sync.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- mail-index-sync.c 30 Jul 2004 05:08:35 -0000 1.29
+++ mail-index-sync.c 24 Aug 2004 05:19:22 -0000 1.30
@@ -374,6 +374,11 @@
if (sync_rec->uid1 < ctx->next_uid) {
/* overlapping with previous expunge */
+ if (ctx->next_uid > sync_rec->uid2) {
+ /* hide this update completely */
+ ctx->update_idx++;
+ return mail_index_sync_next(ctx, sync_rec);
+ }
sync_rec->uid1 = ctx->next_uid;
}
More information about the dovecot-cvs
mailing list