summaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-01-03 19:28:37 +1000
committerPauli <paul.dale@oracle.com>2020-01-05 18:05:14 +1000
commit75e571b59298c868763508d60027e4e666dee1c1 (patch)
tree705e26474c94e8411c35f068d5dd53d18c757311 /providers
parent86723c2a103c763bc918dd70ffb3dd44ba5b5add (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)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/serializers/serializer_dsa_priv.c7
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;
}