summaryrefslogtreecommitdiffstats
path: root/apps/s_server.c
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 /apps/s_server.c
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 'apps/s_server.c')
-rw-r--r--apps/s_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/s_server.c b/apps/s_server.c
index 14dd8a69db..8645c6c203 100644
--- a/apps/s_server.c
+++ b/apps/s_server.c
@@ -2014,7 +2014,7 @@ static void wait_for_async(SSL *s)
fd_set asyncfds;
fd = SSL_get_async_wait_fd(s);
- if (!fd)
+ if (fd < 0)
return;
width = fd + 1;