ccm: Destroy IV generator on crypter creation failure
Closes strongswan/strongswan#343.
This commit is contained in:
1 parent
a82f13e7ce
commit
d654117c66
1 file changed
+1
@@ -417,6 +417,7 @@ ccm_aead_t *ccm_aead_create(encryption_algorithm_t algo,
|
||||
|
||||
if (!this->crypter)
|
||||
{
|
||||
this->iv_gen->destroy(this->iv_gen);
|
||||
free(this);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user