From 6857d4ed651ee645ce77533bbc9b522e5821bc97 Mon Sep 17 00:00:00 2001 From: tb <> Date: Mon, 28 Jun 2021 18:48:56 +0000 Subject: Use the order action->sender == ctx->mode everywhere for consistency. --- src/lib/libssl/tls13_handshake.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libssl') 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 @@ -/* $OpenBSD: tls13_handshake.c,v 1.67 2021/06/28 18:42:17 tb Exp $ */ +/* $OpenBSD: tls13_handshake.c,v 1.68 2021/06/28 18:48:56 tb Exp $ */ /* - * Copyright (c) 2018-2019 Theo Buehler + * Copyright (c) 2018-2021 Theo Buehler * Copyright (c) 2019 Joel Sing * * 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) if ((action = tls13_handshake_active_action(ctx)) == NULL) return 0; - if (ctx->mode == action->sender) + if (action->sender == ctx->mode) *out_state = legacy_states[mt].send; else *out_state = legacy_states[mt].recv; -- cgit v1.2.3-55-g6feb