]> granicus.if.org Git - apache/commitdiff
C/C++ 101 on how to traverse the array of pointers ;). Fix core
authorMladen Turk <mturk@apache.org>
Fri, 3 Feb 2012 13:49:33 +0000 (13:49 +0000)
committerMladen Turk <mturk@apache.org>
Fri, 3 Feb 2012 13:49:33 +0000 (13:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1240167 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_balancer.c

index 0fb22edd1a57a6325a145350b3f3b4651a30f5b7..3660ad6cd7d18864b0ba455b5be4193b420c2eed 100644 (file)
@@ -877,9 +877,9 @@ static void push2table(const char *input, apr_table_t *params,
             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;
                 }