mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
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)
This commit is contained in:
parent
b79e73cfba
commit
be01f609f9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user