mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not waste a time saving a copy of IP header if we are certainly
not going to send an ICMP error message (net.inet.udp.blackhole=1).
This commit is contained in:
parent
9005f14a3b
commit
48cb400fb1
1 changed files with 2 additions and 1 deletions
|
|
@ -208,7 +208,8 @@ udp_input(m, off, proto)
|
|||
* Save a copy of the IP header in case we want restore it
|
||||
* for sending an ICMP error message in response.
|
||||
*/
|
||||
save_ip = *ip;
|
||||
if (!blackhole)
|
||||
save_ip = *ip;
|
||||
|
||||
/*
|
||||
* Checksum extended UDP header and data.
|
||||
|
|
|
|||
Loading…
Reference in a new issue