diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-06-28 18:42:18 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-06-28 18:42:18 +0000 |
commit | f22cb128308ca30ff639053e1a771d242db3931f (patch) | |
tree | 4718b1522ce889edc45e367c894cc5f361a17007 /lib/libssl/tls13_handshake.c | |
parent | 570b9cd78f8a8e9bdf3f7c00c0fbdc239cfe2a2c (diff) |
ctx->alert is not a boolean, so compare it explicitly against 0.
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 578cea338f9..4e4a9101d0c 100644 --- a/lib/libssl/tls13_handshake.c +++ b/lib/libssl/tls13_handshake.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_handshake.c,v 1.66 2021/06/28 15:35:14 tb Exp $ */ +/* $OpenBSD: tls13_handshake.c,v 1.67 2021/06/28 18:42:17 tb Exp $ */ /* * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> @@ -383,7 +383,7 @@ tls13_handshake_perform(struct tls13_ctx *ctx) (action->sender == ctx->mode) ? "sending" : "receiving", tls13_handshake_message_name(action->handshake_type)); - if (ctx->alert) + if (ctx->alert != 0) return tls13_send_alert(ctx->rl, ctx->alert); if (action->sender == ctx->mode) @@ -391,7 +391,7 @@ tls13_handshake_perform(struct tls13_ctx *ctx) else ret = tls13_handshake_recv_action(ctx, action); - if (ctx->alert) + if (ctx->alert != 0) return tls13_send_alert(ctx->rl, ctx->alert); if (ret <= 0) { |