]> granicus.if.org Git - apache/commitdiff
Return a match whenever we get to the end of the worker name, regardless
authorEric Covener <covener@apache.org>
Mon, 24 Nov 2014 12:36:32 +0000 (12:36 +0000)
committerEric Covener <covener@apache.org>
Mon, 24 Nov 2014 12:36:32 +0000 (12:36 +0000)
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

modules/proxy/proxy_util.c

index edc721af6d13af63110ac79b3727f7c233a76666..ca639d7efb55aee9d5ad3440d5faa1fcd28364ed 100644 (file)
@@ -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,