]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_proxy: Follow up to r1892814.
authorYann Ylavic <ylavic@apache.org>
Fri, 3 Sep 2021 11:36:44 +0000 (11:36 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 3 Sep 2021 11:36:44 +0000 (11:36 +0000)
Save some few cycles in ap_proxy_de_socketfy() too.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892853 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.c

index 9910828f453b4a68320c078074633ff2d3a6a1f2..1f5a4b6a861fd83f3aaf3ce61bbef7cbdf6178e6 100644 (file)
@@ -2009,7 +2009,7 @@ PROXY_DECLARE(const char *) ap_proxy_de_socketfy(apr_pool_t *p, const char *url)
      * the UDS path... ignore it
      */
     if (!ap_cstr_casecmpn(url, "unix:", 5) &&
-        ((ptr = ap_strchr_c(url, '|')) != NULL)) {
+        ((ptr = ap_strchr_c(url + 5, '|')) != NULL)) {
         /* move past the 'unix:...|' UDS path info */
         const char *ret, *c;