[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-uidlist.c,
1.28.2.1, 1.28.2.2
cras at dovecot.org
cras at dovecot.org
Wed May 10 13:47:23 EEST 2006
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv30752
Modified Files:
Tag: branch_1_0
dbox-uidlist.c
Log Message:
fix
Index: dbox-uidlist.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-uidlist.c,v
retrieving revision 1.28.2.1
retrieving revision 1.28.2.2
diff -u -d -r1.28.2.1 -r1.28.2.2
--- dbox-uidlist.c 10 May 2006 10:34:10 -0000 1.28.2.1
+++ dbox-uidlist.c 10 May 2006 10:47:21 -0000 1.28.2.2
@@ -971,7 +971,7 @@
/* doesn't exist, make sure that index's last file seq is lower */
if (dbox_uidlist_read(mbox->uidlist) < 0)
return -1;
- return file_seq < mbox->uidlist->last_file_seq ? 1 : 0;
+ return file_seq <= mbox->uidlist->last_file_seq ? 1 : 0;
}
static int
@@ -1030,8 +1030,10 @@
break;
}
}
- if (ret == 0)
+ if (ret == 0) {
+ i_assert(i < count || !*existing_r);
break;
+ }
/* error / it was used, continue with another
file sequence */
More information about the dovecot-cvs
mailing list