]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: ostream-openssl: Create local variable for sstream->ssl_io->plain_o...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 15 Feb 2018 14:47:48 +0000 (15:47 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Thu, 15 Feb 2018 14:47:48 +0000 (15:47 +0100)
src/lib-ssl-iostream/ostream-openssl.c

index 87b16784142a742be62955623a33500fb7da0c3c..44b06201cf5823bc597ac37da70f28296d0595f2 100644 (file)
@@ -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;
        }