summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2021-06-28 18:48:56 +0000
committertb <>2021-06-28 18:48:56 +0000
commit6857d4ed651ee645ce77533bbc9b522e5821bc97 (patch)
tree3696a04f888fb15f953a0aa8c85e74867cce9428 /src
parent456413aabbeb5f80eeb0dcaaa4512fb49344cbe0 (diff)
downloadopenbsd-6857d4ed651ee645ce77533bbc9b522e5821bc97.tar.gz
openbsd-6857d4ed651ee645ce77533bbc9b522e5821bc97.tar.bz2
openbsd-6857d4ed651ee645ce77533bbc9b522e5821bc97.zip
Use the order action->sender == ctx->mode everywhere for consistency.
Diffstat (limited to 'src')
-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;