Fix leak in HMAC error path
authorMatt Caswell <matt@openssl.org>
Mon, 8 Jun 2015 08:29:56 +0000 (09:29 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Jun 2015 10:08:51 +0000 (11:08 +0100)
commit418df5ea232811dc7339380c1aa5e07c28c6c6dc
treee0eb729322f9fdc6e674aa08392cac59b72cb48e
parentd163a2cc46709ba31e91887c65d32743913d3db3
Fix leak in HMAC error path

In the event of an error in the HMAC function, leaks can occur because the
HMAC_CTX does not get cleaned up.

Thanks to the BoringSSL project for reporting this issue.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit e43a13c807e42688c72c4f3d001112bf0a110464)
crypto/hmac/hmac.c