mirror of
https://github.com/openssl/openssl.git
synced 2025-01-06 01:03:39 +08:00
Fix bio_wait() in crypto/bio/bio_lib.c in case OPENSSL_NO_SOCK
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Viktor Dukhovni <viktor@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11736)
This commit is contained in:
parent
9253f8346a
commit
d8c78e5f4a
@ -788,7 +788,9 @@ void bio_cleanup(void)
|
||||
/* Internal variant of the below BIO_wait() not calling BIOerr() */
|
||||
static int bio_wait(BIO *bio, time_t max_time, unsigned int milliseconds)
|
||||
{
|
||||
#ifndef OPENSSL_NO_SOCK
|
||||
int fd;
|
||||
#endif
|
||||
|
||||
if (max_time == 0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user