summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_reass.c
diff options
context:
space:
mode:
authorcsgr <csgr@FreeBSD.org>1999-08-19 05:22:12 +0000
committercsgr <csgr@FreeBSD.org>1999-08-19 05:22:12 +0000
commitad6f988e41b41851ab621398e512fca5e59e62b7 (patch)
tree84dec5fddfc6f71c47c0be200fdb71a4b99fbfc4 /sys/netinet/tcp_reass.c
parent1e31ba6301ad93949e21adbc5425c84e8406bbb2 (diff)
downloadFreeBSD-src-ad6f988e41b41851ab621398e512fca5e59e62b7.zip
FreeBSD-src-ad6f988e41b41851ab621398e512fca5e59e62b7.tar.gz
Fix breakage if blackhole=1 and tiflags & TH_SYN, plus
style(9) fixes Submitted by: Jonathon Lemon
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r--sys/netinet/tcp_reass.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index af31149..e0236b0 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_input.c 8.12 (Berkeley) 5/24/95
- * $Id: tcp_input.c,v 1.88 1999/08/17 12:17:52 csgr Exp $
+ * $Id: tcp_input.c,v 1.89 1999/08/18 15:40:05 csgr Exp $
*/
#include "opt_ipfw.h" /* for ipfw_fwd */
@@ -421,14 +421,19 @@ findpcb:
if (badport_bandlim(1) < 0)
goto drop;
#endif
- if(blackhole) {
+ if (blackhole) {
switch (blackhole) {
- case 1: if(tiflags & TH_SYN) goto drop;
- case 2: goto drop ;
- default : goto drop ;
+ case 1:
+ if (tiflags & TH_SYN)
+ goto drop;
+ break;
+ case 2:
+ goto drop;
+ default:
+ goto drop;
}
- } else
- goto dropwithreset;
+ }
+ goto dropwithreset;
}
tp = intotcpcb(inp);
if (tp == 0)
OpenPOWER on IntegriCloud