From: Timo Sirainen Date: Tue, 15 Apr 2003 13:03:55 +0000 (+0300) Subject: FETCH BODY[HEADER.FIELDS ...] crashed X-Git-Tag: 1.1.alpha1~4749 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ee63f9a5c3d19b91aa1ccfe4012de6eddbaa5c0;p=thirdparty%2Fdovecot%2Fcore.git FETCH BODY[HEADER.FIELDS ...] crashed --HG-- branch : HEAD --- diff --git a/src/imap/imap-fetch-body-section.c b/src/imap/imap-fetch-body-section.c index 57a51193a3..c68702c6cb 100644 --- a/src/imap/imap-fetch-body-section.c +++ b/src/imap/imap-fetch-body-section.c @@ -242,8 +242,8 @@ static int fetch_header_fields(struct istream *input, const char *section, while ((hdr = message_parse_header_next(hdr_ctx)) != NULL) { /* see if we want this field. we always want the end-of-headers line */ - if (!ctx->match_func(ctx->fields, hdr->name, hdr->name_len) && - !hdr->eoh) + if (!hdr->eoh && + !ctx->match_func(ctx->fields, hdr->name, hdr->name_len)) continue; if (!hdr->continued && !hdr->eoh) {