mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Remove ip6 adjusting from the place where pointer couldn't be changed.
And add comment after calling PFIL hooks, where it could be changed.
This commit is contained in:
parent
9fdab4c052
commit
1d4d43c0e7
1 changed files with 1 additions and 4 deletions
|
|
@ -536,10 +536,6 @@ again:
|
|||
else
|
||||
ip6->ip6_hlim = V_ip6_defmcasthlim;
|
||||
}
|
||||
|
||||
/* adjust pointer */
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
|
||||
/*
|
||||
* Validate route against routing table additions;
|
||||
* a better/more specific route might have been added.
|
||||
|
|
@ -798,6 +794,7 @@ again:
|
|||
error = pfil_run_hooks(&V_inet6_pfil_hook, &m, ifp, PFIL_OUT, inp);
|
||||
if (error != 0 || m == NULL)
|
||||
goto done;
|
||||
/* adjust pointer */
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
|
||||
needfiblookup = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue