diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-04 12:37:50 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-10 10:43:48 +0200 |
commit | a61b6b623df1295976d82c177707ac80f2751237 (patch) | |
tree | 73775de0cb2757df9d983ace0a8a7101c4662051 /test | |
parent | Update RSA keygen to use sp800-56b by default (diff) | |
download | openssl-a61b6b623df1295976d82c177707ac80f2751237.tar.xz openssl-a61b6b623df1295976d82c177707ac80f2751237.zip |
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)
Diffstat (limited to 'test')
-rw-r--r-- | test/handshake_helper.c | 3 |
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... */ |