From 1f760760952b866d53b1ad9b457e1d6027e71c6c Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 7 May 2019 11:07:41 +1000 Subject: [PATCH] Coverity CID 1444951: Null pointer dereferences Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8888) --- crypto/ex_data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1