From: Timo Sirainen Date: Mon, 8 Sep 2003 00:04:59 +0000 (+0300) Subject: bugfix X-Git-Tag: 1.1.alpha1~4348 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40674ed767cb1a1128e877a6f3ebf5b7eb26c86f;p=thirdparty%2Fdovecot%2Fcore.git bugfix --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/index-mail-headers.c b/src/lib-storage/index/index-mail-headers.c index cd2ba82975..2ef79c875b 100644 --- a/src/lib-storage/index/index-mail-headers.c +++ b/src/lib-storage/index/index-mail-headers.c @@ -247,12 +247,16 @@ void index_mail_parse_header_init(struct index_mail *mail, } else { t_push(); headers = sort_array(headers); - for (i = 0; i < size && *headers != NULL; i++) { + for (i = 0; i < size && *headers != NULL;) { cmp = strcasecmp(*headers, data[i]->name); if (cmp <= 0) { - if (cmp == 0) + if (cmp == 0) { data[i]->parsing = TRUE; + i++; + } headers++; + } else { + i++; } } t_pop();