Initialize quic_method in tlsexttest
authortb <tb@openbsd.org>
Sat, 30 Mar 2024 09:53:41 +0000 (09:53 +0000)
committertb <tb@openbsd.org>
Sat, 30 Mar 2024 09:53:41 +0000 (09:53 +0000)
This is only there to pretend a quic method was set on the SSL, but
apparently some compilers warn about an uninitialized variable.

from Christian Andersen

regress/lib/libssl/tlsext/tlsexttest.c

index 832063d..18e8000 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tlsexttest.c,v 1.89 2024/03/28 01:45:18 beck Exp $ */
+/* $OpenBSD: tlsexttest.c,v 1.90 2024/03/30 09:53:41 tb Exp $ */
 /*
  * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
  * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -2040,7 +2040,7 @@ static const unsigned char tlsext_quic_transport_data[] = {
 static int
 test_tlsext_quic_transport_parameters_client(void)
 {
-       const SSL_QUIC_METHOD quic_method;
+       const SSL_QUIC_METHOD quic_method = {0};
        unsigned char *data = NULL;
        SSL_CTX *ssl_ctx = NULL;
        SSL *ssl = NULL;
@@ -2171,7 +2171,7 @@ test_tlsext_quic_transport_parameters_client(void)
 static int
 test_tlsext_quic_transport_parameters_server(void)
 {
-       const SSL_QUIC_METHOD quic_method;
+       const SSL_QUIC_METHOD quic_method = {0};
        unsigned char *data = NULL;
        SSL_CTX *ssl_ctx = NULL;
        SSL *ssl = NULL;