From ff541f229729672630c618b24bb4c738d0c0239a Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 30 Mar 2024 09:53:41 +0000 Subject: Initialize quic_method in tlsexttest 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 --- src/regress/lib/libssl/tlsext/tlsexttest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c index 832063dd0a..18e800031a 100644 --- a/src/regress/lib/libssl/tlsext/tlsexttest.c +++ b/src/regress/lib/libssl/tlsext/tlsexttest.c @@ -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 * Copyright (c) 2017 Doug Hogan @@ -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; -- cgit v1.2.3-55-g6feb