summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-06-04 12:37:50 +0200
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-06-10 10:43:48 +0200
commita61b6b623df1295976d82c177707ac80f2751237 (patch)
tree73775de0cb2757df9d983ace0a8a7101c4662051
parent8bf37709a471bb31d2e1f5b4b3796fb3e6dce4df (diff)
Silence gcc false positive warning on alpn_protos_len in test/handshake_helper.c
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/12042)
-rw-r--r--test/handshake_helper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/handshake_helper.c b/test/handshake_helper.c
index 030073289a..2dfded5c11 100644
--- a/test/handshake_helper.c
+++ b/test/handshake_helper.c
@@ -641,7 +641,8 @@ static int configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
}
if (extra->client.alpn_protocols != NULL) {
unsigned char *alpn_protos = NULL;
- size_t alpn_protos_len;
+ size_t alpn_protos_len = 0;
+
if (!TEST_true(parse_protos(extra->client.alpn_protocols,
&alpn_protos, &alpn_protos_len))
/* Reversed return value convention... */