Flush buffers to prevent mixed output (Adam Back <adam@cypherspace.org>).
[openssl.git] / apps / s_client.c
index 7429a9b..2c9ae35 100644 (file)
@@ -925,5 +925,7 @@ static void print_stuff(BIO *bio, SSL *s, int full)
        BIO_printf(bio,"---\n");
        if (peer != NULL)
                X509_free(peer);
+       /* flush, or debugging output gets mixed with http response */
+       BIO_flush(bio);
        }