summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-08-17 13:53:09 -0300
committerRenato Botelho <renato@netgate.com>2015-08-17 13:53:09 -0300
commit314d8ade559c0d51dccfa6a8c6980d2abc82f3bf (patch)
tree7a8ddacfc8cd842c1def35f8b2827446d5597933 /sys/netinet
parent3138b91794b7453f936dd614d2083c13351eddbe (diff)
downloadFreeBSD-src-314d8ade559c0d51dccfa6a8c6980d2abc82f3bf.zip
FreeBSD-src-314d8ade559c0d51dccfa6a8c6980d2abc82f3bf.tar.gz
Importing pfSense patch ip_dstchng_fix.diff
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 81974fd..0d6ade9 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -507,8 +507,7 @@ tooshort:
goto ours;
}
if (m->m_flags & M_IP_NEXTHOP) {
- dchg = (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL);
- if (dchg != 0) {
+ if (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) {
/*
* Directly ship the packet on. This allows
* forwarding packets originally destined to us
OpenPOWER on IntegriCloud