]> granicus.if.org Git - apache/commitdiff
Merge r1705776 from trunk:
authorJim Jagielski <jim@apache.org>
Tue, 6 Oct 2015 12:36:14 +0000 (12:36 +0000)
committerJim Jagielski <jim@apache.org>
Tue, 6 Oct 2015 12:36:14 +0000 (12:36 +0000)
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
modules/proxy/mod_proxy_balancer.c

diff --git a/STATUS b/STATUS
index 6d482cece602901bc8881f6f4890e336274f04eb..feb23eb135f9ac553de7695c4ebfbd0d50608066 100644 (file)
--- 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
index 72ffb1c06209a3b12d3670363921e906f39f8c36..702650a9f082bf13376cdf8c8e31cccbe170a5f8 100644 (file)
@@ -1255,7 +1255,7 @@ static int balancer_handler(request_rec *r)
             ap_rputs("    <httpd:balancer>\n", r);
             /* Start proxy_balancer */
             ap_rvputs(r, "      <httpd:name>", balancer->s->name, "</httpd:name>\n", NULL);
-            if (balancer->s->sticky) {
+            if (*balancer->s->sticky) {
                 ap_rvputs(r, "      <httpd:stickysession>", balancer->s->sticky,
                           "</httpd:stickysession>\n", NULL);
                 ap_rprintf(r,
@@ -1272,7 +1272,7 @@ static int balancer_handler(request_rec *r)
             }
             ap_rvputs(r, "      <httpd:lbmethod>", balancer->lbmethod->name,
                       "</httpd:lbmethod>\n", NULL);
-            if (balancer->s->sticky) {
+            if (*balancer->s->sticky) {
                 ap_rprintf(r,
                            "      <httpd:scolonpathdelim>%s</httpd:scolonpathdelim>\n",
                            (balancer->s->scolonsep ? "On" : "Off"));
@@ -1509,7 +1509,7 @@ static int balancer_handler(request_rec *r)
             ap_rprintf(r, "<td>%s</td>\n",
                        balancer->s->lbpname);
             ap_rputs("<td>", 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, "</td>\n", NULL);