]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ssl: Remove warning over potential uninitialised value
authorGraham Leggett <minfrin@apache.org>
Thu, 3 Apr 2025 14:36:16 +0000 (14:36 +0000)
committerGraham Leggett <minfrin@apache.org>
Thu, 3 Apr 2025 14:36:16 +0000 (14:36 +0000)
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

changes-entries/ssl_prot.txt [new file with mode: 0644]
modules/ssl/ssl_engine_init.c

diff --git a/changes-entries/ssl_prot.txt b/changes-entries/ssl_prot.txt
new file mode 100644 (file)
index 0000000..788fc2a
--- /dev/null
@@ -0,0 +1,5 @@
+
+  *) mod_ssl: Remove warning over potential uninitialised value
+     for ssl protocol prior to protocol selection.
+     [Graham Leggett]
+
index 33ef4c4d7b1578d67af12882ea8638d8c3f9cb70..86c8e32357649c8d16204cd80392802d751ca0b9 100644 (file)
@@ -664,7 +664,12 @@ static apr_status_t ssl_init_ctx_protocol(server_rec *s,
     SSLSrvConfigRec *sc = mySrvConfig(s);
 #if OPENSSL_VERSION_NUMBER >= 0x10100000L  && \
        (!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
 
     /*