diff options
author | Pauli <paul.dale@oracle.com> | 2019-05-07 10:57:34 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-05-08 09:52:58 +1000 |
commit | 97ee8af49560d6f7fe2d8f7fe9657172155522a3 (patch) | |
tree | 0aa3c9546ff823da825def17579c44dcfe2cd5a2 /crypto/ex_data.c | |
parent | 6521cb0319e9bb1d49c93bd9885c7b253e90cef6 (diff) |
Coverity CID 1444955: Null pointer dereferences
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8888)
Diffstat (limited to 'crypto/ex_data.c')
-rw-r--r-- | crypto/ex_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ex_data.c b/crypto/ex_data.c index d9dd3d2aed..94cae75585 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -114,7 +114,7 @@ int crypto_free_ex_index_ex(OPENSSL_CTX *ctx, int class_index, int idx) OSSL_EX_DATA_GLOBAL *global = openssl_ctx_get_ex_data_global(ctx); if (global == NULL) - goto err; + return 0; ip = get_and_lock(ctx, class_index); if (ip == NULL) |