From: Stephan Bosch Date: Thu, 15 Feb 2018 14:47:48 +0000 (+0100) Subject: lib-ssl-iostream: ostream-openssl: Create local variable for sstream->ssl_io->plain_o... X-Git-Tag: 2.2.35~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=766f9a95ad703d5d925898a40d49bbe1a000313f;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: ostream-openssl: Create local variable for sstream->ssl_io->plain_output in o_stream_ssl_flush(). --- diff --git a/src/lib-ssl-iostream/ostream-openssl.c b/src/lib-ssl-iostream/ostream-openssl.c index 2ac3767482..34611b3a8f 100644 --- a/src/lib-ssl-iostream/ostream-openssl.c +++ b/src/lib-ssl-iostream/ostream-openssl.c @@ -117,6 +117,7 @@ static int o_stream_ssl_flush_buffer(struct ssl_ostream *sstream) 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 @@ static int o_stream_ssl_flush(struct ostream_private *stream) 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; }