Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Valdez <svaldez@google.com>2016-05-20 18:40:31 +0300
committerDavid Benjamin <davidben@google.com>2016-05-20 18:42:01 +0300
commitf1012b5c31c8dce14a0adf1566c14a87e1889ba8 (patch)
tree9b49c79b0de240d94f0cb192b773dcca7689f531 /crypto/hkdf
parent2b1ca80e0908dac5f69aa12a2ec180c62004d6fa (diff)
Fix HKDF leak.
Change-Id: Ia83935420d38ededa699aa7f8011a2e358f6c4d3 Reviewed-on: https://boringssl-review.googlesource.com/8022 Reviewed-by: David Benjamin <davidben@google.com>
Diffstat (limited to 'crypto/hkdf')
-rw-r--r--crypto/hkdf/hkdf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/hkdf/hkdf.c b/crypto/hkdf/hkdf.c
index 5412b68a..d80834d8 100644
--- a/crypto/hkdf/hkdf.c
+++ b/crypto/hkdf/hkdf.c
@@ -102,6 +102,7 @@ int HKDF_expand(uint8_t *out_key, size_t out_len, const EVP_MD *digest,
ret = 1;
out:
+ HMAC_CTX_cleanup(&hmac);
if (ret != 1) {
OPENSSL_PUT_ERROR(HKDF, ERR_R_HMAC_LIB);
}