1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

mod_ssl: Remove warning over potential uninitialised value

for ssl protocol prior to protocol selection.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1924757 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Graham Leggett
2025-04-03 14:36:16 +00:00
parent 303ca68847
commit 5a148b5b9d
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
*) mod_ssl: Remove warning over potential uninitialised value
for ssl protocol prior to protocol selection.
[Graham Leggett]

View File

@@ -664,7 +664,12 @@ static apr_status_t ssl_init_ctx_protocol(server_rec *s,
SSLSrvConfigRec *sc = mySrvConfig(s); SSLSrvConfigRec *sc = mySrvConfig(s);
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ #if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
(!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x20800000L) (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER >= 0x20800000L)
int prot; /* default is highest supported version, will be overridden below */
#if SSL_HAVE_PROTOCOL_TLSV1_3
int prot = TLS1_3_VERSION;
#else
int prot = TLS1_2_VERSION;
#endif
#endif #endif
/* /*