Coverity CID 1444955: Null pointer dereferences
authorPauli <paul.dale@oracle.com>
Tue, 7 May 2019 00:57:34 +0000 (10:57 +1000)
committerPauli <paul.dale@oracle.com>
Tue, 7 May 2019 23:52:58 +0000 (09:52 +1000)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8888)

crypto/ex_data.c

index d9dd3d2aed119f71f68bd00a6e007b4a4a7088c7..94cae75585cbd66d854dd401016084cc89712605 100644 (file)
@@ -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)