coverity 1456638: 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:28:37 +10:00
parent 86723c2a10
commit 75e571b592

View File

@ -48,11 +48,10 @@ static void *dsa_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;
}