Fix return value checking for BIO_sock_init
authorPaul Yang <paulyang.inf@gmail.com>
Sun, 25 Jun 2017 17:09:46 +0000 (01:09 +0800)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Mon, 26 Jun 2017 13:19:12 +0000 (15:19 +0200)
commit9e1d5e8dff693cb2b658f66db4f10709d8364690
treee8c348de8015a6626d5f6275cf656926367f7049
parente8e5597606d10fcb5620399dd751be4ecf3dcd1d
Fix return value checking for BIO_sock_init

BIO_sock_init returns '-1' on error, not '0', so it's needed to check
explicitly istead of using '!'.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/3766)
apps/s_socket.c
test/handshake_helper.c