From 0ae0b31509c10e6b8f97f8fe86e38245811e395c Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Mon, 15 Nov 2021 14:51:03 -0500 Subject: [PATCH] The following config: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ./configure --with-liboqs --enable-all --disable-psk --enable-intelasm --enable-aesni --enable-sp-math-all --enable-sp-asm CFLAGS="-O3" Yeilds the following erorr: src/internal.c: In function ‘DoServerKeyExchange’: src/internal.c:24487:28: error: ‘sigAlgo’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 24487 | if (sigAlgo == ed448_sa_algo && | ^ This fixes it. --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index 70a940bec..88ebce641 100644 --- a/src/internal.c +++ b/src/internal.c @@ -24450,7 +24450,7 @@ static int DoServerKeyExchange(WOLFSSL* ssl, const byte* input, #else enum wc_HashType hashType; word16 verifySz; - byte sigAlgo; + byte sigAlgo = 0; if (ssl->options.usingAnon_cipher) { break;