You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2021/07/02 22:09:10 UTC

svn commit: r1891216 - /httpd/httpd/trunk/modules/proxy/proxy_util.c

Author: ylavic
Date: Fri Jul  2 22:09:10 2021
New Revision: 1891216

URL: http://svn.apache.org/viewvc?rev=1891216&view=rev
Log:
mod_proxy: Follow up to r1891206: fix UDS scheme.

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1891216&r1=1891215&r2=1891216&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Fri Jul  2 22:09:10 2021
@@ -1831,7 +1831,8 @@ static char *proxy_define_worker(apr_poo
      * 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);;