From 97ee8af49560d6f7fe2d8f7fe9657172155522a3 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 7 May 2019 10:57:34 +1000 Subject: [PATCH] Coverity CID 1444955: 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 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) -- 2.34.1