diff options
author | Pauli <paul.dale@oracle.com> | 2020-01-03 19:28:37 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-01-05 18:05:14 +1000 |
commit | 75e571b59298c868763508d60027e4e666dee1c1 (patch) | |
tree | 705e26474c94e8411c35f068d5dd53d18c757311 | |
parent | 86723c2a103c763bc918dd70ffb3dd44ba5b5add (diff) |
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)
-rw-r--r-- | providers/implementations/serializers/serializer_dsa_priv.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/providers/implementations/serializers/serializer_dsa_priv.c b/providers/implementations/serializers/serializer_dsa_priv.c index 603904369a..fc0a340ca2 100644 --- a/providers/implementations/serializers/serializer_dsa_priv.c +++ b/providers/implementations/serializers/serializer_dsa_priv.c @@ -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; } |