diff options
author | 2004-04-12 19:05:38 +0000 | |
---|---|---|
committer | 2004-04-12 19:05:38 +0000 | |
commit | e5617b75fb4f2f1eded17f1332da07464987ff27 (patch) | |
tree | 31faa7068491ddb88c13299e8ec628eb1f592de6 /sys/netinet/tcp_usrreq.c | |
parent | Fix process_frame macro. (diff) | |
download | wireguard-openbsd-e5617b75fb4f2f1eded17f1332da07464987ff27.tar.xz wireguard-openbsd-e5617b75fb4f2f1eded17f1332da07464987ff27.zip |
remove duplicate if. from pedro martelletto, ok markus@
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index b66cdbbf59e..612783fe551 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.81 2004/03/02 12:51:12 markus Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.82 2004/04/12 19:05:38 tedu Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -176,7 +176,7 @@ tcp_usrreq(so, req, m, nam, control) /* * When a TCP is attached to a socket, then there will be * a (struct inpcb) pointed at by the socket, and this - * structure will point at a subsidary (struct tcpcb). + * structure will point at a subsidiary (struct tcpcb). */ if (inp == 0 && req != PRU_ATTACH) { splx(s); @@ -300,12 +300,6 @@ tcp_usrreq(so, req, m, nam, control) break; } - /* Trying to connect to some broadcast address */ - if (in_broadcast(sin->sin_addr, NULL)) { - error = EINVAL; - break; - } - if (inp->inp_lport == 0) { error = in_pcbbind(inp, NULL); if (error) |