From: Martin Kraemer Date: Thu, 23 Aug 2001 06:38:25 +0000 (+0000) Subject: uptr->path (if it is ever NULL) will stop ap_unparse_uri_components() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8418f7f9912906d0090b25eb8c3a4b4793a6ee1;p=thirdparty%2Fapache%2Fhttpd.git uptr->path (if it is ever NULL) will stop ap_unparse_uri_components() from working as expected. Submitted by: Justin Erenkrantz git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@90543 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/util_uri.c b/src/main/util_uri.c index d73413c63ad..19017a6b15b 100644 --- a/src/main/util_uri.c +++ b/src/main/util_uri.c @@ -247,7 +247,8 @@ API_EXPORT(char *) ap_unparse_uri_components(pool *p, if (j && uptr->path && *uptr->path != '/') parts[j++] = "/"; - parts[j++] = uptr->path; + if (uptr->path != NULL) + parts[j++] = uptr->path; if (!(flags & UNP_OMITQUERY)) { if (uptr->query) {