From: Pauli Date: Tue, 7 May 2019 01:07:41 +0000 (+1000) Subject: Coverity CID 1444951: Null pointer dereferences X-Git-Tag: openssl-3.0.0-alpha1~2083 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=1f760760952b866d53b1ad9b457e1d6027e71c6c Coverity CID 1444951: 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 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)