diff options
author | tb <> | 2022-06-07 17:19:09 +0000 |
---|---|---|
committer | tb <> | 2022-06-07 17:19:09 +0000 |
commit | 6b34d4597ccf9296400a42bc6ed9b8a4d1c9c8b9 (patch) | |
tree | 7245e12f66d096fe23c5b887ec9c735779475db9 /src/lib | |
parent | 9ef343004c225b4b01d6507c82a7553864aa9a53 (diff) | |
download | openbsd-6b34d4597ccf9296400a42bc6ed9b8a4d1c9c8b9.tar.gz openbsd-6b34d4597ccf9296400a42bc6ed9b8a4d1c9c8b9.tar.bz2 openbsd-6b34d4597ccf9296400a42bc6ed9b8a4d1c9c8b9.zip |
The master_key_length can no longer be < 0
ok jsing
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/tls12_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/tls12_lib.c b/src/lib/libssl/tls12_lib.c index 773ba30bd0..14c8fd53cb 100644 --- a/src/lib/libssl/tls12_lib.c +++ b/src/lib/libssl/tls12_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls12_lib.c,v 1.4 2022/02/05 14:54:10 jsing Exp $ */ | 1 | /* $OpenBSD: tls12_lib.c,v 1.5 2022/06/07 17:19:09 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2021 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -27,7 +27,7 @@ tls12_finished_verify_data(SSL *s, const char *finished_label, | |||
27 | 27 | ||
28 | *out_len = 0; | 28 | *out_len = 0; |
29 | 29 | ||
30 | if (s->session->master_key_length <= 0) | 30 | if (s->session->master_key_length == 0) |
31 | return 0; | 31 | return 0; |
32 | 32 | ||
33 | if (verify_data_len < TLS1_FINISH_MAC_LENGTH) | 33 | if (verify_data_len < TLS1_FINISH_MAC_LENGTH) |