dovecot-2.2: lib-ssl-iostream: Don't assert-crash if stream buff...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Aug 29 16:43:08 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/470153d92662
changeset: 16703:470153d92662
user: Timo Sirainen <tss at iki.fi>
date: Thu Aug 29 16:42:55 2013 +0300
description:
lib-ssl-iostream: Don't assert-crash if stream buffer gets full.
diffstat:
src/lib-ssl-iostream/istream-openssl.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r 5e01ab977406 -r 470153d92662 src/lib-ssl-iostream/istream-openssl.c
--- a/src/lib-ssl-iostream/istream-openssl.c Thu Aug 29 00:57:13 2013 +0300
+++ b/src/lib-ssl-iostream/istream-openssl.c Thu Aug 29 16:42:55 2013 +0300
@@ -101,9 +101,7 @@
ssize_t ret;
sstream->ssl_io->input_handler = TRUE;
- if ((ret = i_stream_ssl_read_real(stream)) < 0)
- ret = -1;
- else {
+ if ((ret = i_stream_ssl_read_real(stream)) >= 0) {
i_assert(i_stream_get_data_size(sstream->ssl_io->plain_input) == 0);
}
sstream->ssl_io->input_handler = FALSE;
More information about the dovecot-cvs
mailing list