Fix HKDF leak.

Change-Id: Ia83935420d38ededa699aa7f8011a2e358f6c4d3
Reviewed-on: https://boringssl-review.googlesource.com/8022
Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
Steven Valdez 2016-05-20 11:40:31 -04:00 committed by David Benjamin
parent 2b1ca80e09
commit f1012b5c31

View File

@ -102,6 +102,7 @@ int HKDF_expand(uint8_t *out_key, size_t out_len, const EVP_MD *digest,
ret = 1; ret = 1;
out: out:
HMAC_CTX_cleanup(&hmac);
if (ret != 1) { if (ret != 1) {
OPENSSL_PUT_ERROR(HKDF, ERR_R_HMAC_LIB); OPENSSL_PUT_ERROR(HKDF, ERR_R_HMAC_LIB);
} }