]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
re-fix htons() for echo_port
authorwessels <>
Thu, 28 Mar 1996 12:39:36 +0000 (12:39 +0000)
committerwessels <>
Thu, 28 Mar 1996 12:39:36 +0000 (12:39 +0000)
src/neighbors.cc

index e7f93eda73b62c09e408c3baa6483d15bdb0d519..ee3f7506ad05ffe0494348edddbb44a4cc748a34 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: neighbors.cc,v 1.6 1996/03/27 20:20:06 wessels Exp $ */
+/* $Id: neighbors.cc,v 1.7 1996/03/28 05:39:36 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 = ntohs((u_short) (sep ? sep->s_port : 7));
+           echo_port = sep ? ntohs((u_short) sep->s_port) : 7;
        }
     }
 }