summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2020-05-17 18:22:31 +0000
committerBob Beck <beck@cvs.openbsd.org>2020-05-17 18:22:31 +0000
commitd80570800a2bcda3fa2ff8225ed90d28fe91e712 (patch)
tree77db384c1016a753af32783841c6f52f4e53adf8
parent3a070d405256a4bc550131cac65c4e5f68a4e2f2 (diff)
Free handshake message correctly, noticed by tb@
ok tb@ jsing@
-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;