projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Improve BIO_socket_wait(), BIO_wait(), BIO_connect_retry(), and their docs
[openssl.git]
/
crypto
/
bio
/
b_sock.c
diff --git
a/crypto/bio/b_sock.c
b/crypto/bio/b_sock.c
index f5d2a627cb5b084f3685e63a0e2b5b2bd8115925..79f7743b2f5d6a14186f4648d3ffafa5b15f5342 100644
(file)
--- a/
crypto/bio/b_sock.c
+++ b/
crypto/bio/b_sock.c
@@
-387,6
+387,8
@@
int BIO_socket_wait(int fd, int for_read, time_t max_time)
struct timeval tv;
time_t now;
+ if (fd < 0 || fd >= FD_SETSIZE)
+ return -1;
if (max_time == 0)
return 1;