]> 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>
Fri, 16 Feb 2018 12:54:55 +0000 (13:54 +0100)
src/lib-ssl-iostream/ostream-openssl.c

index 2ac376748208275c38e955624f50ee27e9f3c1bd..34611b3a8f05d702d94169ebbddbd8a035e87797 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)) < 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;
        }