From: David Reid Date: Fri, 3 Nov 2000 15:08:06 +0000 (+0000) Subject: More removal of raw sockaddr references. This shouldn't cause any problems, X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ba317759e951d157aedb4582b2d5ec5fe314e85;p=apache More removal of raw sockaddr references. This shouldn't cause any problems, but folks may want to test it :) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86823 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 26c73af5a7..ec1da0edd7 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -776,8 +776,8 @@ AP_DECLARE(unsigned) ap_get_server_port(const request_rec *r) if (d->use_canonical_name == USE_CANONICAL_NAME_OFF || d->use_canonical_name == USE_CANONICAL_NAME_DNS) { - return r->hostname ? ntohs(r->connection->local_addr.sin_port) - : port; + if (r->hostname) + apr_get_local_port(&port, r->connection->client_socket); } /* default */ return port;