summaryrefslogtreecommitdiffstats
path: root/crypto/ex_data.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-05-07 11:07:41 +1000
committerPauli <paul.dale@oracle.com>2019-05-08 09:52:58 +1000
commit1f760760952b866d53b1ad9b457e1d6027e71c6c (patch)
tree30caa3396409da31733c29181654cb172f178e4f /crypto/ex_data.c
parentff6c7cc60fcc5dad0b05c144a15b9af9ee3e7288 (diff)
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.c2
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)