The branch master has been updated
       via  4128136a28c3b7d3878daed728c49f18eb950adc (commit)
      from  55833a8de70589a5000044b6291e190f5a3826ae (commit)


- Log -----------------------------------------------------------------
commit 4128136a28c3b7d3878daed728c49f18eb950adc
Author: Mansour Ahmadi <[email protected]>
Date:   Tue Dec 11 16:18:21 2018 -0500

    Add missing OPENSSL_clear_free before using ec->key
    
    Fixes #7657
    
    Reviewed-by: Nicola Tuveri <[email protected]>
    Reviewed-by: Matt Caswell <[email protected]>
    (Merged from https://github.com/openssl/openssl/pull/7877)

-----------------------------------------------------------------------

Summary of changes:
 crypto/cms/cms_pwri.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/crypto/cms/cms_pwri.c b/crypto/cms/cms_pwri.c
index af979b5..980252d 100644
--- a/crypto/cms/cms_pwri.c
+++ b/crypto/cms/cms_pwri.c
@@ -373,6 +373,7 @@ int cms_RecipientInfo_pwri_crypt(CMS_ContentInfo *cms, 
CMS_RecipientInfo *ri,
             goto err;
         }
 
+        OPENSSL_clear_free(ec->key, ec->keylen);
         ec->key = key;
         ec->keylen = keylen;
 
_____
openssl-commits mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits

Reply via email to