httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1728208 - /httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
Date Tue, 02 Feb 2016 20:49:17 GMT
Author: jim
Date: Tue Feb  2 20:49:17 2016
New Revision: 1728208

URL: http://svn.apache.org/viewvc?rev=1728208&view=rev
Log:
If disabling health check (NONE) or using TCP method, then
the expression is moot and is nulled out

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c?rev=1728208&r1=1728207&r2=1728208&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_balancer.c Tue Feb  2 20:49:17 2016
@@ -1165,7 +1165,8 @@ static int balancer_handler(request_rec
                 *wsel->s->hcuri = '\0';
         }
         if (hc_valid_expr_f && (val = apr_table_get(params, "w_he"))) {
-            if (strlen(val) && hc_valid_expr_f(r, val) && strlen(val) <
sizeof(wsel->s->hcexpr))
+            if (strlen(val) && wsel->s->method != NONE && wsel->s->method
!= TCP &&
+                    hc_valid_expr_f(r, val) && strlen(val) < sizeof(wsel->s->hcexpr))
                 strcpy(wsel->s->hcexpr, val);
             else
                 *wsel->s->hcexpr = '\0';



Mime
View raw message