Fix apps/s_client.c's XMPP client
authorRichard Levitte <levitte@openssl.org>
Thu, 20 Jul 2017 19:22:31 +0000 (21:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 20 Jul 2017 21:26:42 +0000 (23:26 +0200)
commit56d909863dcff26e82ebb06d185668f00287f67b
treeb86d040d80447d26e1c84e1a751b1aae13b64bd0
parente3d1a4e56572c71db5f297a50b8aa97bd7b39d3a
Fix apps/s_client.c's XMPP client

When an error occurs during the starttls handskake, s_client gets stuck
looping around zero bytes reads, because the server won't sent anything more
after its error tag.  Shutting down on the first zero byte read fixes this.

Fixes #3980

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3981)
apps/s_client.c