From 3fb97fedc061c5f5e7cec93b4958a67a5d3a9f0d Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 30 Mar 2024 09:53:41 +0000 Subject: [PATCH] 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 --- regress/lib/libssl/tlsext/tlsexttest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/lib/libssl/tlsext/tlsexttest.c b/regress/lib/libssl/tlsext/tlsexttest.c index 832063dd0a8..18e800031af 100644 --- a/regress/lib/libssl/tlsext/tlsexttest.c +++ b/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; -- 2.20.1