dovecot-1.2: maildir: Don't access uninitialized variables.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Aug 2 20:50:52 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/693fa1d6160a
changeset: 9274:693fa1d6160a
user: Timo Sirainen <tss at iki.fi>
date: Sun Aug 02 13:50:46 2009 -0400
description:
maildir: Don't access uninitialized variables.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-uidlist.c | 2 +-
diffs (12 lines):
diff -r c3d4b5e72ac3 -r 693fa1d6160a src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Fri Jul 31 12:11:12 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Sun Aug 02 13:50:46 2009 -0400
@@ -918,7 +918,7 @@ int maildir_uidlist_refresh_fast_init(st
if ((ret = maildir_uidlist_stat(uidlist, &st)) < 0)
return ret;
- if (st.st_size == mhdr->uidlist_size &&
+ if (ret > 0 && st.st_size == mhdr->uidlist_size &&
st.st_mtime == (time_t)mhdr->uidlist_mtime &&
ST_NTIMES_EQUAL(ST_MTIME_NSEC(st), mhdr->uidlist_mtime_nsecs) &&
(!mail_index_is_in_memory(index) || st.st_mtime < ioloop_time-1)) {
More information about the dovecot-cvs
mailing list