[dovecot-cvs] dovecot/src/lib istream.c,1.10,1.11

cras at procontrol.fi cras at procontrol.fi
Wed Oct 29 14:58:37 EET 2003


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv16296

Modified Files:
	istream.c 
Log Message:
reset stream_errno



Index: istream.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/istream.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- istream.c	26 Aug 2003 21:18:16 -0000	1.10
+++ istream.c	29 Oct 2003 12:58:35 -0000	1.11
@@ -154,8 +154,10 @@
 
         i_assert(stream != NULL);
 
-	if (_stream->skip >= _stream->pos)
+	if (_stream->skip >= _stream->pos) {
+		stream->stream_errno = 0;
 		return NULL;
+	}
 
 	if (_stream->w_buffer == NULL) {
 		i_error("i_stream_next_line() called for unmodifyable stream");



More information about the dovecot-cvs mailing list