[dovecot-cvs] dovecot/src/lib istream-tee.c,1.2,1.3

tss at dovecot.org tss at dovecot.org
Fri Mar 16 00:38:40 EET 2007


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

Modified Files:
	istream-tee.c 
Log Message:
Crashfix: Underlying stream's data pointer may change even if we didn't have
to read more data.



Index: istream-tee.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-tee.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- istream-tee.c	18 Nov 2006 14:06:35 -0000	1.2
+++ istream-tee.c	15 Mar 2007 22:38:37 -0000	1.3
@@ -118,7 +118,7 @@
 		tee_streams_update_buffer(tstream->tee);
 	}
 
-	i_assert(stream->buffer == data);
+	stream->buffer = data;
 	ret = size - stream->pos;
 	stream->pos = size;
 	return ret;



More information about the dovecot-cvs mailing list