diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index faef928ae5a..a574754adcd 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -504,7 +504,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