summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-06 13:49:16 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:34:35 +0000
commit9920a58eb20dcf33abf231e8c9439953ace3c936 (patch)
tree23b7889ddbbf305fa741854ebed4587038775693 /ssl
parentbc8857bf70f5428bc2f0d26162ed59e3abb11fb1 (diff)
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>
Diffstat (limited to 'ssl')
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 55b64bbcb1..936e84b120 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -934,7 +934,7 @@ int SSL_waiting_for_async(SSL *s)
int SSL_get_async_wait_fd(SSL *s)
{
if (!s->job)
- return 0;
+ return -1;
return ASYNC_get_wait_fd(s->job);
}