dovecot-1.0: Don't crash with empty messagesets.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 24 11:15:55 EEST 2007
details: http://hg.dovecot.org/dovecot-1.0/rev/f85adea35b74
changeset: 5419:f85adea35b74
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 24 11:15:48 2007 +0300
description:
Don't crash with empty messagesets.
diffstat:
1 file changed, 3 insertions(+)
src/lib-storage/index/index-search.c | 3 +++
diffs (13 lines):
diff -r 678626efb942 -r f85adea35b74 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c Sun Sep 23 14:26:58 2007 +0300
+++ b/src/lib-storage/index/index-search.c Mon Sep 24 11:15:48 2007 +0300
@@ -582,6 +582,9 @@ static int search_msgset_fix_limits(stru
const struct mail_index_header *hdr,
struct mail_search_seqset *set, bool not)
{
+ if (set == NULL)
+ return FALSE;
+
for (; set != NULL; set = set->next) {
if (set->seq1 > hdr->messages_count) {
if (set->seq1 != (uint32_t)-1 &&
More information about the dovecot-cvs
mailing list