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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcd35f7112cd39e5766b76b094ad773c9aba59c2;p=thirdparty%2Fapache%2Fhttpd.git 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 edc721af6d1..ca639d7efb5 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,