dovecot: Crashfix
dovecot at dovecot.org
dovecot at dovecot.org
Sat Nov 10 22:55:59 EET 2007
details: http://hg.dovecot.org/dovecot/rev/b393080f6911
changeset: 6763:b393080f6911
user: Timo Sirainen <tss at iki.fi>
date: Sat Nov 10 22:54:48 2007 +0200
description:
Crashfix
diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-sync-file.c | 7 ++++++-
diffs (17 lines):
diff -r ba74249c79f0 -r b393080f6911 src/lib-storage/index/dbox/dbox-sync-file.c
--- a/src/lib-storage/index/dbox/dbox-sync-file.c Sat Nov 10 20:54:26 2007 +0200
+++ b/src/lib-storage/index/dbox/dbox-sync-file.c Sat Nov 10 22:54:48 2007 +0200
@@ -320,7 +320,12 @@ dbox_sync_file_int(struct dbox_sync_cont
first_expunge_seq = (uint32_t)-1;
}
- seqs = array_get(&entry->changes, &count);
+ if (array_is_created(&entry->changes))
+ seqs = array_get(&entry->changes, &count);
+ else {
+ seqs = NULL;
+ count = 0;
+ }
for (i = 0; i < count; ) {
for (seq = seqs[i].seq1; seq <= seqs[i].seq2; seq++) {
if (seq >= first_expunge_seq)
More information about the dovecot-cvs
mailing list