summaryrefslogtreecommitdiffstats
path: root/crypto/ex_data.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-05-07 03:07:41 +0200
committerPauli <paul.dale@oracle.com>2019-05-08 01:52:58 +0200
commit1f760760952b866d53b1ad9b457e1d6027e71c6c (patch)
tree30caa3396409da31733c29181654cb172f178e4f /crypto/ex_data.c
parentCoverity CID 1444952: Null pointer dereferences (diff)
downloadopenssl-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.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)