From: Ruediger Pluem Date: Wed, 10 Feb 2016 19:35:34 +0000 (+0000) Subject: * Fix compiler warning of unused variable X-Git-Tag: 2.5.0-alpha~2132 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9aa81e10a6a0ad53d6a564c2fcd753832c93ff89;p=thirdparty%2Fapache%2Fhttpd.git * Fix compiler warning of unused variable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729700 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 1c931caacba..b8bc04903c5 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -1146,7 +1146,9 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) #endif const char *hostname_note = apr_table_get(c->notes, "proxy-request-hostname"); +#ifdef HAVE_TLS_ALPN const char *alpn_note; +#endif BOOL proxy_ssl_check_peer_ok = TRUE; int post_handshake_rc = OK; @@ -1158,7 +1160,7 @@ static apr_status_t ssl_io_filter_handshake(ssl_filter_ctx_t *filter_ctx) if (alpn_note) { char *protos, *s, *p, *last; apr_size_t len; - + s = protos = apr_pcalloc(c->pool, strlen(alpn_note)+1); p = apr_pstrdup(c->pool, alpn_note); while ((p = apr_strtok(p, ", ", &last))) {