summaryrefslogtreecommitdiffstats
path: root/crypto/bio
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-05-04 20:21:34 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-05-09 16:57:08 +0200
commitd8c78e5f4ac5c882ca878b9e9038896d5786aafa (patch)
tree46a0817ddee7fe05827820b6ebcf7cdc6a2beae7 /crypto/bio
parent9253f8346acf065d8d52eb03aa87e2c7eb4f7cce (diff)
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)
Diffstat (limited to 'crypto/bio')
-rw-r--r--crypto/bio/bio_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c
index c625833cb0..1579f7c366 100644
--- a/crypto/bio/bio_lib.c
+++ b/crypto/bio/bio_lib.c
@@ -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;