From: Pauli Date: Tue, 7 May 2019 00:57:34 +0000 (+1000) Subject: Coverity CID 1444955: Null pointer dereferences X-Git-Tag: openssl-3.0.0-alpha1~2087 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ee8af49560d6f7fe2d8f7fe9657172155522a3;p=thirdparty%2Fopenssl.git Coverity CID 1444955: Null pointer dereferences Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8888) --- diff --git a/crypto/ex_data.c b/crypto/ex_data.c index d9dd3d2aed1..94cae75585c 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)