[openssl] master update

tmraz at fedoraproject.org tmraz at fedoraproject.org
Mon Jan 18 14:26:44 UTC 2021


The branch master has been updated
       via  47b784a41b729d5df9ad47c99355db2f2026a709 (commit)
      from  038f4dc68edd16f719ce5cf140eda2fb5b86a62a (commit)


- Log -----------------------------------------------------------------
commit 47b784a41b729d5df9ad47c99355db2f2026a709
Author: Kurt Roeckx <kurt at roeckx.be>
Date:   Thu Dec 17 22:28:17 2020 +0100

    Fix memory leak in mac_newctx() on error
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/13702)

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

Summary of changes:
 providers/implementations/signature/mac_legacy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/providers/implementations/signature/mac_legacy.c b/providers/implementations/signature/mac_legacy.c
index b92dabde3c..79a5c911a3 100644
--- a/providers/implementations/signature/mac_legacy.c
+++ b/providers/implementations/signature/mac_legacy.c
@@ -74,6 +74,7 @@ static void *mac_newctx(void *provctx, const char *propq, const char *macname)
     return pmacctx;
 
  err:
+    OPENSSL_free(pmacctx->propq);
     OPENSSL_free(pmacctx);
     EVP_MAC_free(mac);
     return NULL;


More information about the openssl-commits mailing list