You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mt...@apache.org on 2012/02/03 14:49:33 UTC

svn commit: r1240167 - /httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c

Author: mturk
Date: Fri Feb  3 13:49:33 2012
New Revision: 1240167

URL: http://svn.apache.org/viewvc?rev=1240167&view=rev
Log:
C/C++ 101 on how to traverse the array of pointers ;). Fix core

Modified:
    httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c

Modified: httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c?rev=1240167&r1=1240166&r2=1240167&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c (original)
+++ httpd/httpd/branches/2.4.x/modules/proxy/mod_proxy_balancer.c Fri Feb  3 13:49:33 2012
@@ -877,9 +877,9 @@ static void push2table(const char *input
             apr_table_set(params, key, val);
         }
         else {
-            const char *ok = *allowed;
-            while (ok) {
-                if (strcmp(ok, key) == 0) {
+            const char **ok = *allowed;
+            while (*ok) {
+                if (strcmp(*ok, key) == 0) {
                     apr_table_set(params, key, val);
                     break;
                 }