summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2000-05-24 12:57:52 +0000
committerbde <bde@FreeBSD.org>2000-05-24 12:57:52 +0000
commit120b8e7f47bc2d1e448045afc8275fa349e721fd (patch)
tree2f0958f136255b8c2757e111d6d5d43d1692473b /sys
parent58f40f38fdcf9899ae193a745dee28b1f78970e5 (diff)
downloadFreeBSD-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.c8
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
};
-
OpenPOWER on IntegriCloud