From d8c78e5f4ac5c882ca878b9e9038896d5786aafa Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 4 May 2020 20:21:34 +0200 Subject: [PATCH] Fix bio_wait() in crypto/bio/bio_lib.c in case OPENSSL_NO_SOCK Reviewed-by: Matt Caswell Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/11736) --- crypto/bio/bio_lib.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.34.1