summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 5adc173..30aeeb4 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -519,7 +519,8 @@ tooshort:
goto ours;
}
if (m->m_flags & M_IP_NEXTHOP) {
- if (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL) {
+ dchg = (m_tag_find(m, PACKET_TAG_IPFORWARD, NULL) != NULL);
+ if (dchg != 0) {
/*
* Directly ship the packet on. This allows
* forwarding packets originally destined to us
OpenPOWER on IntegriCloud