diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-04 12:34:00 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-06-10 10:39:26 +0200 |
commit | 0fef6d55d379bc6dacf05713c38f3ec81957ea69 (patch) | |
tree | 628a0d249f86dfff84c549efce1ade4785d09073 /test | |
parent | 1349865a5621ce69f09ff4a0991afd74648df72b (diff) |
Silence gcc false positive warning on alpn_protos_len in test/handshake_helper.c
Fixes #12033
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/12041)
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 1742004b5b..347f6b49ed 100644 --- a/test/handshake_helper.c +++ b/test/handshake_helper.c @@ -637,7 +637,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... */ |