diff options
author | Pauli <pauli@openssl.org> | 2023-09-19 03:07:21 +0200 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-09-20 05:31:20 +0200 |
commit | be01f609f98a8930f2c91b813715e515a88f4d54 (patch) | |
tree | 2dfee574429e876ac8031b24abc57a7ee5447d0c /crypto/engine | |
parent | BIO: Wire poll descriptor functions in BIO_s_sock (diff) | |
download | openssl-be01f609f98a8930f2c91b813715e515a88f4d54.tar.xz openssl-be01f609f98a8930f2c91b813715e515a88f4d54.zip |
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; |