[dovecot-cvs] dovecot/src/imap imap-fetch-body-section.c,1.9,1.10

cras at procontrol.fi cras at procontrol.fi
Tue Apr 15 17:03:58 EEST 2003


Update of /home/cvs/dovecot/src/imap
In directory danu:/tmp/cvs-serv5712

Modified Files:
	imap-fetch-body-section.c 
Log Message:
FETCH BODY[HEADER.FIELDS ...] crashed



Index: imap-fetch-body-section.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap/imap-fetch-body-section.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- imap-fetch-body-section.c	4 Apr 2003 12:40:24 -0000	1.9
+++ imap-fetch-body-section.c	15 Apr 2003 13:03:55 -0000	1.10
@@ -242,8 +242,8 @@
 	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) {




More information about the dovecot-cvs mailing list