From: tb Date: Sat, 30 Mar 2024 09:53:41 +0000 (+0000) Subject: Initialize quic_method in tlsexttest X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3fb97fedc061c5f5e7cec93b4958a67a5d3a9f0d;p=openbsd 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 --- 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;