summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-12-29 00:02:57 +0000
committerluigi <luigi@FreeBSD.org>2009-12-29 00:02:57 +0000
commit7236f425fcc7d93f3e40c7b625ded5a6aebdb638 (patch)
tree2beb184af897abe1ba67541dca381607228965ee /sys/netinet
parentce942064c6a24172c0d5b08847b0f672844f2509 (diff)
downloadFreeBSD-src-7236f425fcc7d93f3e40c7b625ded5a6aebdb638.zip
FreeBSD-src-7236f425fcc7d93f3e40c7b625ded5a6aebdb638.tar.gz
we really need htonl() here, see the comment a few lines above in the code.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ipfw/ip_fw2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ipfw/ip_fw2.c b/sys/netinet/ipfw/ip_fw2.c
index bf10214..58a88dc 100644
--- a/sys/netinet/ipfw/ip_fw2.c
+++ b/sys/netinet/ipfw/ip_fw2.c
@@ -1377,7 +1377,7 @@ do { \
else if (v == 2)
key = htonl(dst_port);
else if (v == 3)
- key = htons(src_port);
+ key = htonl(src_port);
else if (v == 4 || v == 5) {
check_uidgid(
(ipfw_insn_u32 *)cmd,
OpenPOWER on IntegriCloud