summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_handshake.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/tls13_handshake.c')
-rw-r--r--src/lib/libssl/tls13_handshake.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c
index d739dc99e5..05446380dd 100644
--- a/src/lib/libssl/tls13_handshake.c
+++ b/src/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_handshake.c,v 1.56 2020/05/09 08:39:44 jsing Exp $ */ 1/* $OpenBSD: tls13_handshake.c,v 1.57 2020/05/09 15:47:11 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org>
4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -332,6 +332,12 @@ tls13_handshake_send_action(struct tls13_ctx *ctx,
332 ssize_t ret; 332 ssize_t ret;
333 CBB cbb; 333 CBB cbb;
334 334
335 if (ctx->send_dummy_ccs) {
336 if ((ret = tls13_send_dummy_ccs(ctx->rl)) != TLS13_IO_SUCCESS)
337 return ret;
338 ctx->send_dummy_ccs = 0;
339 }
340
335 /* If we have no handshake message, we need to build one. */ 341 /* If we have no handshake message, we need to build one. */
336 if (ctx->hs_msg == NULL) { 342 if (ctx->hs_msg == NULL) {
337 if ((ctx->hs_msg = tls13_handshake_msg_new()) == NULL) 343 if ((ctx->hs_msg = tls13_handshake_msg_new()) == NULL)