[dovecot-cvs]
dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.174, 1.175
cras at dovecot.org
cras at dovecot.org
Thu Nov 3 20:30:27 EET 2005
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv15347
Modified Files:
mbox-sync.c
Log Message:
We could have assert-crashed when expunging messages.
Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.174
retrieving revision 1.175
diff -u -d -r1.174 -r1.175
--- mbox-sync.c 27 Oct 2005 12:12:57 -0000 1.174
+++ mbox-sync.c 3 Nov 2005 18:30:24 -0000 1.175
@@ -824,9 +824,10 @@
extra_space = sync_ctx->space_diff;
}
- if (mbox_sync_rewrite(sync_ctx, mail_ctx, end_offset, move_diff,
- extra_space, sync_ctx->need_space_seq,
- last_seq) < 0)
+ if (mbox_sync_rewrite(sync_ctx,
+ last_seq == sync_ctx->seq ? mail_ctx : NULL,
+ end_offset, move_diff, extra_space,
+ sync_ctx->need_space_seq, last_seq) < 0)
return -1;
update_from_offsets(sync_ctx);
More information about the dovecot-cvs
mailing list