From 7eecda6095c003ddded7175a1ffdf35a2ce63ed5 Mon Sep 17 00:00:00 2001 From: Bence Mali <64798108+bencemali@users.noreply.github.com> Date: Mon, 20 May 2024 17:51:32 +0200 Subject: [PATCH] Errors not printed when OPENSSL_NO_STDIO is set (#1774) Signed-off-by: Bence Mali --- src/common/rand/rand_nist.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/rand/rand_nist.c b/src/common/rand/rand_nist.c index 6270a31cc..07db63b3b 100644 --- a/src/common/rand/rand_nist.c +++ b/src/common/rand/rand_nist.c @@ -39,7 +39,9 @@ __declspec(noreturn) __attribute__((noreturn)) # endif static void handleErrors(void) { +#ifndef OPENSSL_NO_STDIO OSSL_FUNC(ERR_print_errors_fp)(stderr); +#endif abort(); } #endif