mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
tls-crypto: Fix potential memory leak
Fixes: d8e42a3d4e3c ("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…
x
Reference in New Issue
Block a user