summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-06-06 16:13:12 +0000
committertb <>2024-06-06 16:13:12 +0000
commit371ac7085256069dec0367a240329d112f110e6a (patch)
tree010b8c3291327c8ee7d55eb20439b5470f56b501 /src/lib
parentc42d1dfb3a73c033740c77876c3da35f1868ec0d (diff)
downloadopenbsd-371ac7085256069dec0367a240329d112f110e6a.tar.gz
openbsd-371ac7085256069dec0367a240329d112f110e6a.tar.bz2
openbsd-371ac7085256069dec0367a240329d112f110e6a.zip
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/ssl_tlsext.c5
1 files changed, 3 insertions, 2 deletions
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 @@
1/* $OpenBSD: ssl_tlsext.c,v 1.149 2024/04/16 17:46:30 tb Exp $ */ 1/* $OpenBSD: ssl_tlsext.c,v 1.150 2024/06/06 16:13:12 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -1472,7 +1472,8 @@ tlsext_keyshare_server_process(SSL *s, uint16_t msg_type, CBS *cbs, int *alert)
1472 size_t i, j, client_groups_index; 1472 size_t i, j, client_groups_index;
1473 int preferred_group_found = 0; 1473 int preferred_group_found = 0;
1474 int decode_error; 1474 int decode_error;
1475 uint16_t group, client_preferred_group; 1475 uint16_t client_preferred_group = 0;
1476 uint16_t group;
1476 CBS client_shares, key_exchange; 1477 CBS client_shares, key_exchange;
1477 1478
1478 /* 1479 /*