From: Timo Sirainen Date: Tue, 20 Jul 2004 17:06:08 +0000 (+0300) Subject: mail_cache_lookup_headers() fix X-Git-Tag: 1.1.alpha1~3766 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a11af9df3bb29db35f956d337ab88160729580b0;p=thirdparty%2Fdovecot%2Fcore.git mail_cache_lookup_headers() fix --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-cache-lookup.c b/src/lib-index/mail-cache-lookup.c index 2740735c83..4a811a1600 100644 --- a/src/lib-index/mail-cache-lookup.c +++ b/src/lib-index/mail-cache-lookup.c @@ -386,7 +386,7 @@ int mail_cache_lookup_headers(struct mail_cache_view *view, string_t *dest, } /* check that all fields were found */ - for (i = 0; i < ctx.max_field; i++) { + for (i = 0; i <= ctx.max_field; i++) { if (ctx.fields_found[i] == 1) { t_pop(); return 0;