]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - test/handshake_helper.c
Silence gcc false positive warning on alpn_protos_len in test/handshake_helper.c
[thirdparty/openssl.git] / test / handshake_helper.c
index 030073289afecc2f9c40a5fbcd85a4d41e198508..2dfded5c11983bafe3fa4fd6466ad8faf29c6de9 100644 (file)
@@ -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... */