[dovecot-cvs] dovecot/src/lib-mail message-parser.c,1.62,1.63

cras at dovecot.org cras at dovecot.org
Wed Sep 8 16:58:36 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv24592

Modified Files:
	message-parser.c 
Log Message:
fix



Index: message-parser.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-parser.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- message-parser.c	7 Sep 2004 14:24:46 -0000	1.62
+++ message-parser.c	8 Sep 2004 13:58:33 -0000	1.63
@@ -721,7 +721,7 @@
 	for (;;) {
 		ret = i_stream_read_data(ctx->input, &msg, &size, startpos+1);
 
-		if (ret != 0 && size > 0) {
+		if (ret > 0) {
 			/* we want to know one byte in advance to find out
 			   if it's multiline header */
 			parse_size = size-1;
@@ -729,7 +729,7 @@
 			parse_size = size;
 		}
 
-		if (ret <= 0 && (ret != 0 || startpos == size)) {
+		if (ret <= 0 && startpos == size) {
 			if (ret == -1) {
 				/* error / EOF with no bytes */
 				return -1;



More information about the dovecot-cvs mailing list