dovecot-2.0: imap: Don't crash if mailbox UIDVALIDITY is zero wh...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Jun 28 02:41:20 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/0535d79ea686
changeset: 12857:0535d79ea686
user: Timo Sirainen <tss at iki.fi>
date: Tue Jun 28 02:31:12 2011 +0300
description:
imap: Don't crash if mailbox UIDVALIDITY is zero when SELECTing a mailbox.
diffstat:
src/imap/cmd-select.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 01d43e0b2420 -r 0535d79ea686 src/imap/cmd-select.c
--- a/src/imap/cmd-select.c Tue Jun 28 02:23:10 2011 +0300
+++ b/src/imap/cmd-select.c Tue Jun 28 02:31:12 2011 +0300
@@ -339,7 +339,8 @@
client->sync_last_full_modseq = status.highest_modseq;
}
- if (ctx->qresync_uid_validity == status.uidvalidity) {
+ if (ctx->qresync_uid_validity == status.uidvalidity &&
+ status.uidvalidity != 0) {
if ((ret = select_qresync(ctx)) < 0) {
client_send_storage_error(ctx->cmd,
mailbox_get_storage(ctx->box));
More information about the dovecot-cvs
mailing list