From 7e43baed2a4cc050b301650c4a45ebdd54a30b5f Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Thu, 8 Apr 2021 19:27:06 +0200 Subject: Do not allow creating empty RSA keys by duplication Also avoid crashing in rsa_get_params on empty keys. Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/14793) --- crypto/ec/ecx_key.c | 1 - 1 file changed, 1 deletion(-) (limited to 'crypto/ec/ecx_key.c') diff --git a/crypto/ec/ecx_key.c b/crypto/ec/ecx_key.c index 90253372ce..dcec26c2e9 100644 --- a/crypto/ec/ecx_key.c +++ b/crypto/ec/ecx_key.c @@ -96,4 +96,3 @@ unsigned char *ossl_ecx_key_allocate_privkey(ECX_KEY *key) return key->privkey; } - -- cgit v1.2.3