From 388ab3bc828aaf7566be00ec3b56eee194bd5338 Mon Sep 17 00:00:00 2001 From: tb Date: Tue, 7 Jun 2022 17:19:09 +0000 Subject: [PATCH] The master_key_length can no longer be < 0 ok jsing --- lib/libssl/tls12_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libssl/tls12_lib.c b/lib/libssl/tls12_lib.c index 773ba30bd07..14c8fd53cbe 100644 --- a/lib/libssl/tls12_lib.c +++ b/lib/libssl/tls12_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls12_lib.c,v 1.4 2022/02/05 14:54:10 jsing Exp $ */ +/* $OpenBSD: tls12_lib.c,v 1.5 2022/06/07 17:19:09 tb Exp $ */ /* * Copyright (c) 2021 Joel Sing * @@ -27,7 +27,7 @@ tls12_finished_verify_data(SSL *s, const char *finished_label, *out_len = 0; - if (s->session->master_key_length <= 0) + if (s->session->master_key_length == 0) return 0; if (verify_data_len < TLS1_FINISH_MAC_LENGTH) -- 2.20.1