Fix the error code for SSL_get_async_wait_fd()
authorMatt Caswell <matt@openssl.org>
Tue, 6 Oct 2015 12:49:16 +0000 (13:49 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Nov 2015 23:34:35 +0000 (23:34 +0000)
commit9920a58eb20dcf33abf231e8c9439953ace3c936
tree23b7889ddbbf305fa741854ebed4587038775693
parentbc8857bf70f5428bc2f0d26162ed59e3abb11fb1
Fix the error code for SSL_get_async_wait_fd()

0 is a valid file descriptor so SSL_get_async_wait_fd should instead return
-1 on error.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/s_server.c
ssl/ssl_lib.c