[Pkg-openssl-devel] Bug#747469: openssl s_client -starttls hangs on XMPP s2s connections
Richard Levitte
levitte at openssl.org
Thu Jul 20 21:32:19 UTC 2017
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 levitte at openssl.org
OpenSSL Project http://www.openssl.org/~levitte/
More information about the Pkg-openssl-devel
mailing list