diff options
author | Pauli <pauli@openssl.org> | 2023-09-19 11:07:21 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-09-20 13:31:20 +1000 |
commit | be01f609f98a8930f2c91b813715e515a88f4d54 (patch) | |
tree | 2dfee574429e876ac8031b24abc57a7ee5447d0c /crypto/engine | |
parent | b79e73cfba2f17cc810bde3c50a2a1d4f03b8cae (diff) |
coverity: NULL dereference
Fixes coverity 1544699.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/22138)
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/eng_table.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/engine/eng_table.c b/crypto/engine/eng_table.c index 3138a15260..9dc3144bbf 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; |