[openssl] openssl-3.0 update

Dr. Paul Dale pauli at openssl.org
Sun Nov 7 22:57:27 UTC 2021


The branch openssl-3.0 has been updated
       via  2d35559743d2d73a0ffa82c02bbdc3b4d3b3cbf6 (commit)
      from  571512aa46b73625bf4b82ae545614b9c3105708 (commit)


- Log -----------------------------------------------------------------
commit 2d35559743d2d73a0ffa82c02bbdc3b4d3b3cbf6
Author: Pauli <pauli at openssl.org>
Date:   Thu Nov 4 15:05:59 2021 +1000

    Address Coverity 1493362 resource leak
    
    Reviewed-by: Tomas Mraz <tomas at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/16962)
    
    (cherry picked from commit 1b4d9967a24154f1dc00f471eb843203ec7bb7d4)

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

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

diff --git a/providers/implementations/keymgmt/mac_legacy_kmgmt.c b/providers/implementations/keymgmt/mac_legacy_kmgmt.c
index 63553996bd..ec34a3ee71 100644
--- a/providers/implementations/keymgmt/mac_legacy_kmgmt.c
+++ b/providers/implementations/keymgmt/mac_legacy_kmgmt.c
@@ -508,6 +508,7 @@ static void *mac_gen(void *genctx, OSSL_CALLBACK *cb, void *cbarg)
      * of this can be removed and we will only support the EVP_KDF APIs.
      */
     if (!ossl_prov_cipher_copy(&key->cipher, &gctx->cipher)) {
+        ossl_mac_key_free(key);
         ERR_raise(ERR_LIB_PROV, ERR_R_INTERNAL_ERROR);
         return NULL;
     }


More information about the openssl-commits mailing list