From: wessels <> Date: Thu, 28 Mar 1996 03:20:06 +0000 (+0000) Subject: fix byte order conversion bug on echo port X-Git-Tag: SQUID_3_0_PRE1~6366 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f2e4070514cd4efc7943a2f4bfb91714ca9d4af;p=thirdparty%2Fsquid.git fix byte order conversion bug on echo port --- diff --git a/src/neighbors.cc b/src/neighbors.cc index aadc636a02..e7f93eda73 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,4 +1,4 @@ -/* $Id: neighbors.cc,v 1.5 1996/03/27 18:15:50 wessels Exp $ */ +/* $Id: neighbors.cc,v 1.6 1996/03/27 20:20:06 wessels Exp $ */ #include "squid.h" @@ -341,7 +341,7 @@ void neighbors_open(fd) echo_hdr.shostid = our_socket_name.sin_addr.s_addr; sep = getservbyname("echo", "udp"); - echo_port = sep ? sep->s_port : 7; + echo_port = ntohs((u_short) (sep ? sep->s_port : 7)); } } }