summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-07-08 13:15:22 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-07-08 13:15:22 +0000
commit9cc4ae4f4f1612d33c2a9a57b4ad4471f50e0419 (patch)
treee8bb3c2be65a8ce6ee794023f4716fba2a837b5a
parent318b6463cdd9f9591358346c36c96e02f5ca26f3 (diff)
countbits() uses network byte order, not host byte order; enami tsugutomo, NetBSD PR 3830
-rw-r--r--sbin/ipnat/ipnat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipnat/ipnat.c b/sbin/ipnat/ipnat.c
index 4fbba89efd9..6318c2e3e55 100644
--- a/sbin/ipnat/ipnat.c
+++ b/sbin/ipnat/ipnat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipnat.c,v 1.16 1997/06/23 17:02:43 kstailey Exp $ */
+/* $OpenBSD: ipnat.c,v 1.17 1997/07/08 13:15:21 kstailey Exp $ */
/*
* (C)opyright 1993,1994,1995 by Darren Reed.
*
@@ -204,7 +204,7 @@ void *ptr;
else
printf("%s", inet_ntoa(np->in_in[1]));
printf(" -> %s/", inet_ntoa(np->in_out[0]));
- bits = countbits(ntohl(np->in_out[1].s_addr));
+ bits = countbits(np->in_out[1].s_addr);
if (bits != -1)
printf("%d ", bits);
else