httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r1855743 - /httpd/httpd/trunk/server/util.c
Date Mon, 18 Mar 2019 09:19:54 GMT
Author: rpluem
Date: Mon Mar 18 09:19:54 2019
New Revision: 1855743

URL: http://svn.apache.org/viewvc?rev=1855743&view=rev
Log:
* Play safe in case we get no name

Modified:
    httpd/httpd/trunk/server/util.c

Modified: httpd/httpd/trunk/server/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1855743&r1=1855742&r2=1855743&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util.c (original)
+++ httpd/httpd/trunk/server/util.c Mon Mar 18 09:19:54 2019
@@ -573,6 +573,10 @@ AP_DECLARE(void) ap_no2slash_ex(char *na
 
     char *d, *s;
 
+    if (!name || !*name) {
+        return;
+    }
+
     s = d = name;
 
 #ifdef HAVE_UNC_PATHS



Mime
View raw message