From: Eric Covener Date: Mon, 24 Nov 2014 12:36:32 +0000 (+0000) Subject: Return a match whenever we get to the end of the worker name, regardless X-Git-Tag: 2.5.0-alpha~3688 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=668c7200db24bb8079d2a3dfa70bf9de7786494e;p=apache Return a match whenever we get to the end of the worker name, regardless of whether there is URL left. ProxyPassMatch had been using the default worker in trunk. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1641381 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index edc721af6d..ca639d7efb 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1544,7 +1544,8 @@ static int ap_proxy_strcmp_ematch(const char *str, const char *expected) if (str[x] != expected[y]) return 1; } - return (str[x] != '\0'); + /* We got all the way through the worker path without a difference */ + return 0; } PROXY_DECLARE(proxy_worker *) ap_proxy_get_worker(apr_pool_t *p,