From 0ba317759e951d157aedb4582b2d5ec5fe314e85 Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 3 Nov 2000 15:08:06 +0000 Subject: [PATCH] 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 --- modules/http/http_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.50.1