Hi, I was made aware of this issue through github: https://github.com/openssl/openssl/issues/3980
I believe the following patch (commit 56d909863dcff26e82ebb06d185668f00287f67b) fixes this issue: diff --git a/apps/s_client.c b/apps/s_client.c index 85c1b6b579..dc467994f8 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -1667,6 +1667,8 @@ int MAIN(int argc, char **argv) if (strstr(mbuf, "/stream:features>")) goto shut; seen = BIO_read(sbio, mbuf, BUFSIZZ); + if (seen <= 0) + goto shut; mbuf[seen] = 0; } BIO_printf(sbio, Cheers, Richard -- Richard Levitte levi...@openssl.org OpenSSL Project http://www.openssl.org/~levitte/