summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_lib.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2020-05-17 18:22:30 +0000
committerbeck <beck@openbsd.org>2020-05-17 18:22:30 +0000
commit6072998247b7bd5c3dd8395b2bb7dc207b64a35a (patch)
tree26d77fd8677e746b54e17cbf5568378a2d65148b /lib/libssl/tls13_lib.c
parentChange install images called *.fs to *.img. These are UFS filesystem images, (diff)
downloadwireguard-openbsd-6072998247b7bd5c3dd8395b2bb7dc207b64a35a.tar.xz
wireguard-openbsd-6072998247b7bd5c3dd8395b2bb7dc207b64a35a.zip
Free handshake message correctly, noticed by tb@
ok tb@ jsing@
Diffstat (limited to 'lib/libssl/tls13_lib.c')
-rw-r--r--lib/libssl/tls13_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/tls13_lib.c b/lib/libssl/tls13_lib.c
index e86c4fd07f6..c1a0d89f81d 100644
--- a/lib/libssl/tls13_lib.c
+++ b/lib/libssl/tls13_lib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_lib.c,v 1.43 2020/05/11 17:46:46 jsing Exp $ */
+/* $OpenBSD: tls13_lib.c,v 1.44 2020/05/17 18:22:30 beck Exp $ */
/*
* Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2019 Bob Beck <beck@openbsd.org>
@@ -271,7 +271,7 @@ tls13_key_update_recv(struct tls13_ctx *ctx, CBS *cbs)
CBB cbb;
CBS cbs; /* XXX */
- free(ctx->hs_msg);
+ tls13_handshake_msg_free(ctx->hs_msg);
ctx->hs_msg = tls13_handshake_msg_new();
if (!tls13_handshake_msg_start(ctx->hs_msg, &cbb, TLS13_MT_KEY_UPDATE))
goto err;