From 371ac7085256069dec0367a240329d112f110e6a Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 6 Jun 2024 16:13:12 +0000 Subject: ssl_tlsext: fix uninitialized variable warning with gcc This is a false positive but as is well-known, gcc is terrible at understanding conditionally initialized variables and it is tedious to explain this to downstream maintainers who look at warnings. ok miod --- src/lib/libssl/ssl_tlsext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index 64fa52e20c..62bb3d737a 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_tlsext.c,v 1.149 2024/04/16 17:46:30 tb Exp $ */ +/* $OpenBSD: ssl_tlsext.c,v 1.150 2024/06/06 16:13:12 tb Exp $ */ /* * Copyright (c) 2016, 2017, 2019 Joel Sing * Copyright (c) 2017 Doug Hogan @@ -1472,7 +1472,8 @@ tlsext_keyshare_server_process(SSL *s, uint16_t msg_type, CBS *cbs, int *alert) size_t i, j, client_groups_index; int preferred_group_found = 0; int decode_error; - uint16_t group, client_preferred_group; + uint16_t client_preferred_group = 0; + uint16_t group; CBS client_shares, key_exchange; /* -- cgit v1.2.3-55-g6feb