coverity 1456642: fix null check

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10748)
This commit is contained in:
Pauli 2020-01-03 19:19:47 +10:00
parent 1fdde9170c
commit ff19035e62

View file

@ -77,11 +77,9 @@ static void *rsa_priv_newctx(void *provctx)
if (ctx != NULL) {
ctx->provctx = provctx;
/* -1 is the "whatever" indicator, i.e. the PKCS8 library default PBE */
ctx->sc.pbe_nid = -1;
}
/* -1 is the "whatever" indicator, i.e. the PKCS8 library default PBE */
ctx->sc.pbe_nid = -1;
return ctx;
}