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.3.9~2303 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16d3a9396730dae3d869dc8159f9c1287fc9f28e;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 87b1678414..44b06201cf 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, @@ -133,8 +134,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; }