From: Victor J. Orlikowski Date: Wed, 4 Apr 2001 07:22:20 +0000 (+0000) Subject: As in 1.3, make sure the port is set in ap_parse_uri_components(). X-Git-Tag: 2.0.17~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e54aa0816ddb42e168e261ce1356466f011bf93f;p=thirdparty%2Fapache%2Fhttpd.git As in 1.3, make sure the port is set in ap_parse_uri_components(). Reviewed by: Chuck Murcko git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88717 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/util_uri.c b/server/util_uri.c index 508c6f199c8..bb97df32540 100644 --- a/server/util_uri.c +++ b/server/util_uri.c @@ -289,6 +289,7 @@ deal_with_host: if (s == NULL) { /* we expect the common case to have no port */ uptr->hostname = apr_pstrndup(p, hostinfo, uri - hostinfo); + uptr->port = uptr->scheme ? ap_default_port_for_scheme(uptr->scheme) : DEFAULT_HTTP_PORT; goto deal_with_path; } uptr->hostname = apr_pstrndup(p, hostinfo, s - hostinfo);