tls-crypto: Fix potential memory leak
Fixes: d8e42a3d4e
("tls-crypto: Share private key search between client and server")
This commit is contained in:
parent
f4258c56f5
commit
8384527ff5
|
@ -2767,6 +2767,7 @@ enumerator_t *tls_create_private_key_enumerator(tls_version_t min_version,
|
|||
|
||||
if (!array_count(enumerator->key_types))
|
||||
{
|
||||
private_key_destroy(enumerator);
|
||||
return NULL;
|
||||
}
|
||||
return &enumerator->public;
|
||||
|
|
Loading…
Reference in New Issue