mirror of https://github.com/openssl/openssl
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)
This commit is contained in:
parent
8bf37709a4
commit
a61b6b623d
|
@ -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... */
|
||||
|
|
Loading…
Reference in New Issue