]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Play safe in case we get no name
authorRuediger Pluem <rpluem@apache.org>
Mon, 18 Mar 2019 09:19:54 +0000 (09:19 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 18 Mar 2019 09:19:54 +0000 (09:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855743 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 89c5abef80b2cdb7f222eaa325bd04e3adb7893b..8633c6294a86d495b8a24085a128c72a7d4911b9 100644 (file)
@@ -573,6 +573,10 @@ AP_DECLARE(void) ap_no2slash_ex(char *name, int is_fs_path)
 
     char *d, *s;
 
+    if (!name || !*name) {
+        return;
+    }
+
     s = d = name;
 
 #ifdef HAVE_UNC_PATHS