]> granicus.if.org Git - apache/commitdiff
* Fix compiler warning of unused variable
authorRuediger Pluem <rpluem@apache.org>
Wed, 10 Feb 2016 19:35:34 +0000 (19:35 +0000)
committerRuediger Pluem <rpluem@apache.org>
Wed, 10 Feb 2016 19:35:34 +0000 (19:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729700 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_io.c

index 1c931caacba13f9f64fdec806b50d1efc5519b6a..b8bc04903c568f2385e1288bd375ff581d82f453 100644 (file)
@@ -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))) {