Blame SOURCES/0004-Use-HMAC_CTX_free-instead-of-free-on-a-HMAC_CTX-3422.patch

105ad9
From fc9d3560b4a84bab784574cfe9700125065713c3 Mon Sep 17 00:00:00 2001
105ad9
From: Omair Majid <omajid@redhat.com>
105ad9
Date: Sat, 22 Dec 2018 15:06:18 -0500
105ad9
Subject: [PATCH 4/7] Use HMAC_CTX_free() instead of free() on a HMAC_CTX*
105ad9
 (#34222)
105ad9
105ad9
This is a leftover from before the OpenSSL 1.0/1.1 hybridization. There
105ad9
was no HMAC_CTX_free() in 1.0.
105ad9
105ad9
Fixes #34210
105ad9
---
105ad9
 .../Unix/System.Security.Cryptography.Native/pal_hmac.cpp       | 2 +-
105ad9
 1 file changed, 1 insertion(+), 1 deletion(-)
105ad9
105ad9
diff --git a/src/Native/Unix/System.Security.Cryptography.Native/pal_hmac.cpp b/src/Native/Unix/System.Security.Cryptography.Native/pal_hmac.cpp
105ad9
index 539dc07683..979750cb40 100644
105ad9
--- a/src/Native/Unix/System.Security.Cryptography.Native/pal_hmac.cpp
105ad9
+++ b/src/Native/Unix/System.Security.Cryptography.Native/pal_hmac.cpp
105ad9
@@ -31,7 +31,7 @@ extern "C" HMAC_CTX* CryptoNative_HmacCreate(const uint8_t* key, int32_t keyLen,
105ad9
 
105ad9
     if (!ret)
105ad9
     {
105ad9
-        free(ctx);
105ad9
+        HMAC_CTX_free(ctx);
105ad9
         return nullptr;
105ad9
     }
105ad9
 
105ad9
-- 
105ad9
2.20.1
105ad9