From: Marius Tomaschewski Date: Thu, 22 Apr 2021 10:47:18 +0000 (+0200) Subject: ccm: Destroy IV generator on crypter creation failure X-Git-Tag: 5.9.3dr3~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d654117c663c0e150ec495529fb951681281c2fa;p=thirdparty%2Fstrongswan.git ccm: Destroy IV generator on crypter creation failure Closes strongswan/strongswan#343. --- diff --git a/src/libstrongswan/plugins/ccm/ccm_aead.c b/src/libstrongswan/plugins/ccm/ccm_aead.c index 9cf9bedf54..16c5b71e1c 100644 --- a/src/libstrongswan/plugins/ccm/ccm_aead.c +++ b/src/libstrongswan/plugins/ccm/ccm_aead.c @@ -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; }