summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/tls13_handshake.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c
index 4e4a9101d0..55fefe544f 100644
--- a/src/lib/libssl/tls13_handshake.c
+++ b/src/lib/libssl/tls13_handshake.c
@@ -1,6 +1,6 @@
1/* $OpenBSD: tls13_handshake.c,v 1.67 2021/06/28 18:42:17 tb Exp $ */ 1/* $OpenBSD: tls13_handshake.c,v 1.68 2021/06/28 18:48:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2018-2021 Theo Buehler <tb@openbsd.org>
4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
5 * 5 *
6 * Permission to use, copy, modify, and distribute this software for any 6 * Permission to use, copy, modify, and distribute this software for any
@@ -636,7 +636,7 @@ tls13_handshake_legacy_state(struct tls13_ctx *ctx, int *out_state)
636 if ((action = tls13_handshake_active_action(ctx)) == NULL) 636 if ((action = tls13_handshake_active_action(ctx)) == NULL)
637 return 0; 637 return 0;
638 638
639 if (ctx->mode == action->sender) 639 if (action->sender == ctx->mode)
640 *out_state = legacy_states[mt].send; 640 *out_state = legacy_states[mt].send;
641 else 641 else
642 *out_state = legacy_states[mt].recv; 642 *out_state = legacy_states[mt].recv;