diff options
author | Pauli <pauli@openssl.org> | 2023-09-19 11:07:21 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-09-20 13:31:45 +1000 |
commit | 266e86617f387a8cbdd0207f5cf9b0b55723ae5a (patch) | |
tree | d54eeced2c81f1a33bb646e588f73048a44827ce /crypto | |
parent | a0d4d84a3bded5151f09e30d043a5b2be570bcc4 (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)
(cherry picked from commit be01f609f98a8930f2c91b813715e515a88f4d54)
Diffstat (limited to 'crypto')
-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; |