mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't generate an ICMPv6 error message if packet was consumed by filter.
MFC after: 1 week Sponsored by: Yandex LLC
This commit is contained in:
parent
f3c22563bd
commit
27aa751c90
1 changed files with 2 additions and 4 deletions
|
|
@ -564,10 +564,8 @@ skip_routing:
|
|||
odst = ip6->ip6_dst;
|
||||
/* Run through list of hooks for output packets. */
|
||||
error = pfil_run_hooks(&V_inet6_pfil_hook, &m, rt->rt_ifp, PFIL_OUT, NULL);
|
||||
if (error != 0)
|
||||
goto senderr;
|
||||
if (m == NULL)
|
||||
goto freecopy;
|
||||
if (error != 0 || m == NULL)
|
||||
goto freecopy; /* consumed by filter */
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
|
||||
/* See if destination IP address was changed by packet filter. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue