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

mod_ssl: fix compiler warning (bad cast).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701145 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yann Ylavic
2015-09-03 22:59:18 +00:00
parent 379f9d4d33
commit cad3cbd7f6

View File

@@ -2211,9 +2211,8 @@ int ssl_callback_alpn_select(SSL *ssl,
*/ */
init_vhost(c, ssl); init_vhost(c, ssl);
proposed = (const unsigned char *)ap_select_protocol(c, NULL, sslconn->server, proposed = ap_select_protocol(c, NULL, sslconn->server, client_protos);
client_protos); *out = (const unsigned char *)(proposed? proposed : ap_get_protocol(c));
*out = proposed? proposed : ap_get_protocol(c);
len = strlen((const char*)*out); len = strlen((const char*)*out);
if (len > 255) { if (len > 255) {
ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c, APLOGNO(02840) ap_log_cerror(APLOG_MARK, APLOG_ERR, 0, c, APLOGNO(02840)