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)
This commit is contained in:
parent
db1bbde602
commit
de89d74b70
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297985
@ -571,8 +571,7 @@ ip_input(struct mbuf *m)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user