]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: If flush wants to read, make sure the flush callback isn't being...
authorTimo Sirainen <tss@iki.fi>
Wed, 21 Sep 2011 12:54:06 +0000 (15:54 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 21 Sep 2011 12:54:06 +0000 (15:54 +0300)
src/lib-ssl-iostream/ostream-openssl.c

index 8a1904a984ef4b71468af6988cd9b00d216f18e5..12fab2945262f918d33f07a9c557eb057dec43dc 100644 (file)
@@ -119,6 +119,8 @@ 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);
                sstream->ssl_io->ostream_flush_waiting_input = TRUE;
                ret = 1;
        }