summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorinoguchi <inoguchi@openbsd.org>2020-08-04 14:34:54 +0000
committerinoguchi <inoguchi@openbsd.org>2020-08-04 14:34:54 +0000
commit8480570e29b790815b32e4a052e786d7c4e7d118 (patch)
tree054420537f767bb15d18b7a4955d2188c6c42be6
parentOn POWER9 use the "darn" instruction and feed its output as entropy into (diff)
downloadwireguard-openbsd-8480570e29b790815b32e4a052e786d7c4e7d118.tar.xz
wireguard-openbsd-8480570e29b790815b32e4a052e786d7c4e7d118.zip
Cleanup aead_ctx
ok jsing@ tb@
-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;