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:03:20 +0000 (11:03 +0100)
commite43a13c807e42688c72c4f3d001112bf0a110464
treeb81219fb8cf576bfcc326f3793660647eaf512c7
parent68886be7e2cd395a759fcd41d2cede461b68843d
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>
crypto/hmac/hmac.c