From: Mladen Turk Date: Fri, 3 Feb 2012 13:49:33 +0000 (+0000) Subject: C/C++ 101 on how to traverse the array of pointers ;). Fix core X-Git-Tag: 2.4.1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e405f41c766591eb02c43b7b2cc50ac4f0b72a4a;p=apache C/C++ 101 on how to traverse the array of pointers ;). Fix core git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1240167 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 0fb22edd1a..3660ad6cd7 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -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; }