dovecot-2.1: lib-ssl-iostream: If flush wants to read, make sure...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 21 15:58:45 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/e0bee6c56a05
changeset: 13533:e0bee6c56a05
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 21 15:54:06 2011 +0300
description:
lib-ssl-iostream: If flush wants to read, make sure the flush callback isn't being called again.
diffstat:
src/lib-ssl-iostream/ostream-openssl.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 62e1c575b16a -r e0bee6c56a05 src/lib-ssl-iostream/ostream-openssl.c
--- a/src/lib-ssl-iostream/ostream-openssl.c Wed Sep 21 15:53:00 2011 +0300
+++ b/src/lib-ssl-iostream/ostream-openssl.c Wed Sep 21 15:54:06 2011 +0300
@@ -119,6 +119,8 @@
if (ret == 0 && sstream->ssl_io->want_read) {
/* we need to read more data until we can continue. */
+ o_stream_set_flush_pending(sstream->ssl_io->plain_output,
+ FALSE);
sstream->ssl_io->ostream_flush_waiting_input = TRUE;
ret = 1;
}
More information about the dovecot-cvs
mailing list