diff options
author | bde <bde@FreeBSD.org> | 2000-05-24 12:57:52 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2000-05-24 12:57:52 +0000 |
commit | 120b8e7f47bc2d1e448045afc8275fa349e721fd (patch) | |
tree | 2f0958f136255b8c2757e111d6d5d43d1692473b /sys | |
parent | 58f40f38fdcf9899ae193a745dee28b1f78970e5 (diff) | |
download | FreeBSD-src-120b8e7f47bc2d1e448045afc8275fa349e721fd.zip FreeBSD-src-120b8e7f47bc2d1e448045afc8275fa349e721fd.tar.gz |
Fixed some style bugs (mainly convoluted logic for blackhole processing).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 2bb10e6..3eac9ee 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -350,14 +350,11 @@ udp_input(m, off, proto) goto bad; } *ip = save_ip; - if (badport_bandlim(0) < 0) goto bad; - - if (!blackhole) - icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0); - else + if (blackhole) goto bad; + icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0); return; } #ifdef IPSEC @@ -905,4 +902,3 @@ struct pr_usrreqs udp_usrreqs = { pru_rcvoob_notsupp, udp_send, pru_sense_null, udp_shutdown, in_setsockaddr, sosend, soreceive, sopoll }; - |