Mercurial > dovecot > core-2.2
changeset 22842:bf1a68547d67
lib-ssl-iostream: ostream-openssl: Create local variable for sstream->ssl_io->plain_output in o_stream_ssl_flush().
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Thu, 15 Feb 2018 15:47:48 +0100 |
parents | f746d87d3aff |
children | f2d74b6dd754 |
files | src/lib-ssl-iostream/ostream-openssl.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-ssl-iostream/ostream-openssl.c Sat Feb 10 09:55:43 2018 +0100 +++ b/src/lib-ssl-iostream/ostream-openssl.c Thu Feb 15 15:47:48 2018 +0100 @@ -117,6 +117,7 @@ static int o_stream_ssl_flush(struct ostream_private *stream) { struct ssl_ostream *sstream = (struct ssl_ostream *)stream; + struct ostream *plain_output = sstream->ssl_io->plain_output; int ret; if ((ret = openssl_iostream_more(sstream->ssl_io)) < 0) { @@ -132,8 +133,7 @@ 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); + o_stream_set_flush_pending(plain_output, FALSE); sstream->ssl_io->ostream_flush_waiting_input = TRUE; ret = 1; }