summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/tls13_legacy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_legacy.c b/src/lib/libssl/tls13_legacy.c
index 943e2db9a1..a9a7fff3e0 100644
--- a/src/lib/libssl/tls13_legacy.c
+++ b/src/lib/libssl/tls13_legacy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_legacy.c,v 1.16 2020/10/11 02:22:27 jsing Exp $ */ 1/* $OpenBSD: tls13_legacy.c,v 1.17 2020/10/11 02:59:47 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2018, 2019 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -340,6 +340,8 @@ tls13_use_legacy_stack(struct tls13_ctx *ctx)
340 340
341 /* Stash the current handshake message. */ 341 /* Stash the current handshake message. */
342 tls13_handshake_msg_data(ctx->hs_msg, &cbs); 342 tls13_handshake_msg_data(ctx->hs_msg, &cbs);
343 if (!BUF_MEM_grow_clean(s->internal->init_buf, CBS_len(&cbs)))
344 goto err;
343 if (!CBS_write_bytes(&cbs, s->internal->init_buf->data, 345 if (!CBS_write_bytes(&cbs, s->internal->init_buf->data,
344 s->internal->init_buf->length, NULL)) 346 s->internal->init_buf->length, NULL))
345 goto err; 347 goto err;