From: Pauli Date: Thu, 21 May 2020 03:44:01 +0000 (+1000) Subject: Coverity 1463571: Null pointer dereferences (FORWARD_NULL) X-Git-Tag: openssl-3.0.0-alpha3~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d55122ee782ebd306ef492f50c9b41e41a56244;p=oweals%2Fopenssl.git Coverity 1463571: Null pointer dereferences (FORWARD_NULL) Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/11892) --- diff --git a/providers/implementations/keymgmt/rsa_kmgmt.c b/providers/implementations/keymgmt/rsa_kmgmt.c index b237b2784f..3091c1dee0 100644 --- a/providers/implementations/keymgmt/rsa_kmgmt.c +++ b/providers/implementations/keymgmt/rsa_kmgmt.c @@ -411,8 +411,8 @@ static void *gen_init(void *provctx, int selection, int rsa_type) } else { gctx->nbits = 2048; gctx->primes = RSA_DEFAULT_PRIME_NUM; + gctx->rsa_type = rsa_type; } - gctx->rsa_type = rsa_type; } return gctx; }