From 48aaf13681c609f757a3a1869277bedb8e3183da Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Tue, 6 Oct 2015 12:36:14 +0000 Subject: [PATCH] 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 --- STATUS | 6 ------ modules/proxy/mod_proxy_balancer.c | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/STATUS b/STATUS index 6d482cece6..feb23eb135 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 72ffb1c062..702650a9f0 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); -- 2.50.1