[dovecot-cvs] dovecot/src/lib istream.c,1.18,1.19

cras at procontrol.fi cras at procontrol.fi
Fri Jul 2 18:36:27 EEST 2004


Update of /home/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv21455/lib

Modified Files:
	istream.c 
Log Message:
i_stream_read_data() could have returned invalid data at EOF (notable with
mboxes since end of mail = "EOF").



Index: istream.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/istream.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- istream.c	19 Jun 2004 22:06:30 -0000	1.18
+++ istream.c	2 Jul 2004 15:36:25 -0000	1.19
@@ -190,6 +190,7 @@
 		ret = i_stream_read(stream);
 	} while (ret >= 0);
 
+	*data = i_stream_get_data(stream, size);
 	return ret == -2 ? -2 :
 		*size > 0 ? 0 : -1;
 }



More information about the dovecot-cvs mailing list