From 5b7fc7b13338108b9acf3be9899e16a1f4e663de Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Tue, 11 Feb 2020 14:39:30 -0700 Subject: [PATCH] Address failure when blinding disabled and key not initialized to zero --- src/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 6b73d7ac8..487e49014 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -47333,6 +47333,8 @@ WOLFSSL_RSA* wolfSSL_RSA_new(void) wc_RsaSetRNG(key, rng); } +#else + XMEMSET(key, 0, sizeof(RsaKey)); #endif /* WC_RSA_BLINDING */ external->internal = key;