dovecot-2.0-sslstream: istream-seekable: Don't assert-crash when...

dovecot at dovecot.org dovecot at dovecot.org
Sat Feb 13 02:55:40 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0-sslstream/rev/65c6568515ce
changeset: 10184:65c6568515ce
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 26 17:06:21 2009 -0400
description:
istream-seekable: Don't assert-crash when input buffer becomes full.

diffstat:

1 file changed, 2 insertions(+)
src/lib/istream-seekable.c |    2 ++

diffs (12 lines):

diff -r 2b9eb115fbd7 -r 65c6568515ce src/lib/istream-seekable.c
--- a/src/lib/istream-seekable.c	Mon Oct 26 13:59:43 2009 -0400
+++ b/src/lib/istream-seekable.c	Mon Oct 26 17:06:21 2009 -0400
@@ -252,6 +252,8 @@ static ssize_t i_stream_seekable_read(st
 		stream->istream.eof = sstream->fd_input->eof;
 		stream->istream.stream_errno =
 			sstream->fd_input->stream_errno;
+	} else {
+		ret = -2;
 	}
 
 	stream->buffer = i_stream_get_data(sstream->fd_input, &pos);


More information about the dovecot-cvs mailing list