diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_asn1.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cms/cms_asn1.c b/src/lib/libcrypto/cms/cms_asn1.c index cfe67fb6c1..bd7466cc1d 100644 --- a/src/lib/libcrypto/cms/cms_asn1.c +++ b/src/lib/libcrypto/cms/cms_asn1.c | |||
@@ -234,7 +234,7 @@ static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
234 | if (kekri->key) | 234 | if (kekri->key) |
235 | { | 235 | { |
236 | OPENSSL_cleanse(kekri->key, kekri->keylen); | 236 | OPENSSL_cleanse(kekri->key, kekri->keylen); |
237 | OPENSSL_free(kekri->key); | 237 | free(kekri->key); |
238 | } | 238 | } |
239 | } | 239 | } |
240 | else if (ri->type == CMS_RECIPINFO_PASS) | 240 | else if (ri->type == CMS_RECIPINFO_PASS) |
@@ -243,7 +243,7 @@ static int cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, | |||
243 | if (pwri->pass) | 243 | if (pwri->pass) |
244 | { | 244 | { |
245 | OPENSSL_cleanse(pwri->pass, pwri->passlen); | 245 | OPENSSL_cleanse(pwri->pass, pwri->passlen); |
246 | OPENSSL_free(pwri->pass); | 246 | free(pwri->pass); |
247 | } | 247 | } |
248 | } | 248 | } |
249 | } | 249 | } |