From: Pauli Date: Tue, 19 Sep 2023 01:07:21 +0000 (+1000) Subject: coverity: NULL dereference X-Git-Tag: openssl-3.2.0-alpha2~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be01f609f98a8930f2c91b813715e515a88f4d54;p=thirdparty%2Fopenssl.git coverity: NULL dereference Fixes coverity 1544699. Reviewed-by: Matt Caswell Reviewed-by: Tim Hudson Reviewed-by: Tomas Mraz Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/22138) --- diff --git a/crypto/engine/eng_table.c b/crypto/engine/eng_table.c index 3138a152600..9dc3144bbfd 100644 --- a/crypto/engine/eng_table.c +++ b/crypto/engine/eng_table.c @@ -97,6 +97,7 @@ int engine_table_register(ENGINE_TABLE **table, ENGINE_CLEANUP_CB *cleanup, if (added && !engine_cleanup_add_first(cleanup)) { lh_ENGINE_PILE_free(&(*table)->piles); *table = NULL; + goto end; } while (num_nids--) { tmplate.nid = *nids;