summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2020-08-04 14:34:55 +0000
committerKinichiro Inoguchi <inoguchi@cvs.openbsd.org>2020-08-04 14:34:55 +0000
commit6c363d24a804c7f0024ab581881f35e11d4c4bce (patch)
treeae6938759a6a605ebacf42a2f8a00caa5745be8e /lib
parent2ad086ba2375bccdb4ca3f30a0b44b2c2c224ad9 (diff)
Cleanup aead_ctx
ok jsing@ tb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/tls13_record_layer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/tls13_record_layer.c b/lib/libssl/tls13_record_layer.c
index 9465a54b6de..105a741228b 100644
--- a/lib/libssl/tls13_record_layer.c
+++ b/lib/libssl/tls13_record_layer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_record_layer.c,v 1.49 2020/06/01 19:51:31 tb Exp $ */
+/* $OpenBSD: tls13_record_layer.c,v 1.50 2020/08/04 14:34:54 inoguchi Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
*
@@ -435,6 +435,8 @@ tls13_record_layer_set_traffic_key(const EVP_AEAD *aead, EVP_AEAD_CTX *aead_ctx,
struct tls13_secret key = { .data = NULL, .len = 0 };
int ret = 0;
+ EVP_AEAD_CTX_cleanup(aead_ctx);
+
freezero(iv->data, iv->len);
iv->data = NULL;
iv->len = 0;