diff options
author | luigi <luigi@FreeBSD.org> | 2002-08-04 20:50:13 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-08-04 20:50:13 +0000 |
commit | 056c90a35e6c09bb48283eb12991809433f6eb7f (patch) | |
tree | cdef12988fb863345d685d8e7a115b200c81f362 /sys/netinet/udp_usrreq.c | |
parent | cff94398b32d9f5aa919fc0c826b0f5dec110496 (diff) | |
download | FreeBSD-src-056c90a35e6c09bb48283eb12991809433f6eb7f.zip FreeBSD-src-056c90a35e6c09bb48283eb12991809433f6eb7f.tar.gz |
bugfix: move check for udp_blackhole before the one for icmp_bandlim.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 37d15d0..cc7a59c 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -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); |