From: Jim Jagielski Date: Tue, 6 Oct 2015 12:36:14 +0000 (+0000) Subject: Merge r1705776 from trunk: X-Git-Tag: 2.4.17~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48aaf13681c609f757a3a1869277bedb8e3183da;p=thirdparty%2Fapache%2Fhttpd.git Merge r1705776 from trunk: Adjust since we are now in shared mem area Thx Werror: error: address of array 'balancer->s->sticky' will always evaluate to 'true' Reviewed/backported by: jim git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1707036 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/STATUS b/STATUS index 6d482cece60..feb23eb135f 100644 --- a/STATUS +++ b/STATUS @@ -110,12 +110,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_proxy_balancer: Silence warnings, and fix logic, in XML - balancer status output. - trunk patch: http://svn.apache.org/r1705776 - 2.4.x patch: trunk works - +1: jim, ylavic, rjung - * Fix some style issues trunk patch: http://svn.apache.org/r1705983 2.4.x patch: trunk works diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 72ffb1c0620..702650a9f08 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -1255,7 +1255,7 @@ static int balancer_handler(request_rec *r) ap_rputs(" \n", r); /* Start proxy_balancer */ ap_rvputs(r, " ", balancer->s->name, "\n", NULL); - if (balancer->s->sticky) { + if (*balancer->s->sticky) { ap_rvputs(r, " ", balancer->s->sticky, "\n", NULL); ap_rprintf(r, @@ -1272,7 +1272,7 @@ static int balancer_handler(request_rec *r) } ap_rvputs(r, " ", balancer->lbmethod->name, "\n", NULL); - if (balancer->s->sticky) { + if (*balancer->s->sticky) { ap_rprintf(r, " %s\n", (balancer->s->scolonsep ? "On" : "Off")); @@ -1509,7 +1509,7 @@ static int balancer_handler(request_rec *r) ap_rprintf(r, "%s\n", balancer->s->lbpname); ap_rputs("", r); - if (balancer->s->vhost && *(balancer->s->vhost)) { + if (*balancer->s->vhost) { ap_rvputs(r, balancer->s->vhost, " -> ", NULL); } ap_rvputs(r, balancer->s->vpath, "\n", NULL);