From: Dr. David von Oheimb Date: Mon, 4 May 2020 18:21:34 +0000 (+0200) Subject: Fix bio_wait() in crypto/bio/bio_lib.c in case OPENSSL_NO_SOCK X-Git-Tag: openssl-3.0.0-alpha2~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d8c78e5f4ac5c882ca878b9e9038896d5786aafa;p=oweals%2Fopenssl.git 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) --- 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;