diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-06-28 18:48:57 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-06-28 18:48:57 +0000 |
commit | 0aad106c94a05a9ba22e513f7edc5dd05c703432 (patch) | |
tree | e0df05fa67fb33253b48fbb526c0d5b786ab932f /lib/libssl/tls13_handshake.c | |
parent | f22cb128308ca30ff639053e1a771d242db3931f (diff) |
Use the order action->sender == ctx->mode everywhere for consistency.
Diffstat (limited to 'lib/libssl/tls13_handshake.c')
-rw-r--r-- | lib/libssl/tls13_handshake.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/tls13_handshake.c b/lib/libssl/tls13_handshake.c index 4e4a9101d0c..55fefe544f2 100644 --- a/lib/libssl/tls13_handshake.c +++ b/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 <tb@openbsd.org> + * Copyright (c) 2018-2021 Theo Buehler <tb@openbsd.org> * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> * * 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; |