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
--- /dev/null
+
+ *) mod_ssl: Remove warning over potential uninitialised value
+ for ssl protocol prior to protocol selection.
+ [Graham Leggett]
+
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
/*