diff options
author | Pauli <paul.dale@oracle.com> | 2019-05-07 03:07:41 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-05-08 01:52:58 +0200 |
commit | 1f760760952b866d53b1ad9b457e1d6027e71c6c (patch) | |
tree | 30caa3396409da31733c29181654cb172f178e4f /crypto/ex_data.c | |
parent | Coverity CID 1444952: Null pointer dereferences (diff) | |
download | openssl-1f760760952b866d53b1ad9b457e1d6027e71c6c.tar.xz openssl-1f760760952b866d53b1ad9b457e1d6027e71c6c.zip |
Coverity CID 1444951: 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 94cae75585..055420a95d 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -152,7 +152,7 @@ int crypto_get_ex_new_index_ex(OPENSSL_CTX *ctx, int class_index, long argl, OSSL_EX_DATA_GLOBAL *global = openssl_ctx_get_ex_data_global(ctx); if (global == NULL) - goto err; + return -1; ip = get_and_lock(ctx, class_index); if (ip == NULL) |