Index: squid/src/client_side.c diff -u squid/src/client_side.c:1.1.1.40.2.3 squid/src/client_side.c:1.1.1.40.2.4 --- squid/src/client_side.c:1.1.1.40.2.3 Thu May 20 21:00:16 1999 +++ squid/src/client_side.c Fri Jun 4 01:06:00 1999 @@ -865,7 +865,7 @@ */ ch.src_addr = http->conn->peer.sin_addr; ch.my_addr = http->conn->me.sin_addr; - ch.my_port = http->conn->me.sin_port; + ch.my_port = ntohs(http->conn->me.sin_port); ch.request = http->request; /* * aclCheckFast returns 1 for ALLOW and 0 for DENY. The default @@ -2277,7 +2277,7 @@ http->log_uri = xstrdup(urlCanonicalClean(request)); request->client_addr = conn->peer.sin_addr; request->my_addr = conn->me.sin_addr; - request->my_port = conn->me.sin_port; + request->my_port = ntohs(conn->me.sin_port); request->http_ver = http->http_ver; if (!urlCheckRequest(request)) { err = errorCon(ERR_UNSUP_REQ, HTTP_NOT_IMPLEMENTED); @@ -2459,7 +2459,7 @@ #if USE_IDENT identChecklist.src_addr = peer.sin_addr; identChecklist.my_addr = me.sin_addr; - identChecklist.my_port = me.sin_port; + identChecklist.my_port = ntohs(me.sin_port); if (aclCheckFast(Config.accessList.identLookup, &identChecklist)) identStart(&me, &peer, clientIdentDone, connState); #endif