dovecot-2.0: maildir: Don't access uninitialized variables.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Aug 2 20:51:04 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/140558f1987a
changeset: 9711:140558f1987a
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 8da945eb4176 -r 140558f1987a src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Fri Jul 31 14:56:39 2009 -0400
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Sun Aug 02 13:50:46 2009 -0400
@@ -952,7 +952,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