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) {
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;
}