summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2016-04-14 18:57:30 +0000
committerloos <loos@FreeBSD.org>2016-04-14 18:57:30 +0000
commitd4ca9ff659ee2e873d1e05ba5b1dcdc56038c420 (patch)
treebde4825158c6541d014897338de2f092b7541ceb /sys/netinet/ip_input.c
parentef692c75a097aad14dfa981abac6c58348cb9a45 (diff)
downloadFreeBSD-src-d4ca9ff659ee2e873d1e05ba5b1dcdc56038c420.zip
FreeBSD-src-d4ca9ff659ee2e873d1e05ba5b1dcdc56038c420.tar.gz
Do not overwrite the dchg variable.
It does not cause any real issues because the variable is overwritten only when the packet is forwarded (and the variable is not used anymore). Obtained from: pfSense MFC after: 2 weeks Sponsored by: Rubicon Communications (Netgate)
Diffstat (limited to 'sys/netinet/ip_input.c')
-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 6f25e08..773d7ae 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -571,8 +571,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