From: Ruediger Pluem Date: Mon, 18 Mar 2019 09:19:54 +0000 (+0000) Subject: * Play safe in case we get no name X-Git-Tag: 2.5.0-alpha2-ci-test-only~2097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f3b52c10226635ab01dfd3a7e744e4dbfbba72;p=thirdparty%2Fapache%2Fhttpd.git * Play safe in case we get no name git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1855743 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util.c b/server/util.c index 89c5abef80b..8633c6294a8 100644 --- a/server/util.c +++ b/server/util.c @@ -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