bugfix: move check for udp_blackhole before the one for icmp_bandlim.
MFC after: 3 days
This commit is contained in:
parent
c3712ca9bf
commit
1cbd978e96
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101335
@ -387,10 +387,10 @@ udp_input(m, off)
|
||||
udpstat.udps_noportbcast++;
|
||||
goto badheadlocked;
|
||||
}
|
||||
if (badport_bandlim(BANDLIM_ICMP_UNREACH) < 0)
|
||||
goto badheadlocked;
|
||||
if (blackhole)
|
||||
goto badheadlocked;
|
||||
if (badport_bandlim(BANDLIM_ICMP_UNREACH) < 0)
|
||||
goto badheadlocked;
|
||||
*ip = save_ip;
|
||||
ip->ip_len += iphlen;
|
||||
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user