OpenSSL: Fix memory leak in HMAC_CTX compatibility wrapper function
authorJouni Malinen <jouni@qca.qualcomm.com>
Tue, 16 Feb 2016 11:13:36 +0000 (13:13 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 16 Feb 2016 11:13:36 +0000 (13:13 +0200)
commit03e3ddf84e97f193efedd88a380cfcedfff89587
treeb8e6cdf50c8d5fbab9b6ea37ae2a778d2ec9c772
parentd9a0f69747fbf00d3b8737f563b9f929bb952634
OpenSSL: Fix memory leak in HMAC_CTX compatibility wrapper function

Commit 5c9a33702fd9e9ae9c349d6461a6621801d4f9cb ('OpenSSL: Clean up
crypto_hash_*() to use a single implementation') added a wrapper
function to allow the new OpenSSL API to be used with older OpenSSL
versions. However, the HMAC_CTX_free() wrapper was incorrectly skipping
the call to HMAC_CTX_cleanup() which is still needed to free the
resources OpenSSL allocated internally.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/crypto/crypto_openssl.c