]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy: Follow up to r1891206: fix UDS scheme.
authorYann Ylavic <ylavic@apache.org>
Fri, 2 Jul 2021 22:09:10 +0000 (22:09 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 2 Jul 2021 22:09:10 +0000 (22:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1891216 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index 728c109d2f1eaff2819cf59f61a0eab299f39bb1..33b700537eb6020469809135d3229891f43f6714 100644 (file)
@@ -1831,7 +1831,8 @@ static char *proxy_define_worker(apr_pool_t *p,
      * require format: unix:/path/foo/bar.sock|http://ignored/path2/
      * This results in talking http to the socket at /path/foo/bar.sock
      */
-    if (!ap_cstr_casecmp(url, "unix:") && (ptr = ap_strchr_c(url + 5, '|'))) {
+    if (!ap_cstr_casecmpn(url, "unix:", 5)
+            && (ptr = ap_strchr_c(url + 5, '|'))) {
         rv = apr_uri_parse(p, apr_pstrmemdup(p, url, ptr - url), &uri);
         if (rv == APR_SUCCESS) {
             sockpath = ap_runtime_dir_relative(p, uri.path);;