diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-12 19:05:39 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-04-12 19:05:39 +0000 |
commit | e3fc55b1cdadddcd718272126801584334fb8aa4 (patch) | |
tree | cf2a85a8efb844eb70ce5f23b5c3f2e225b6fc1c /sys | |
parent | 1e0f079c2825b9ca96b9ea499651521eaae46cc1 (diff) |
remove duplicate if. from pedro martelletto, ok markus@
Diffstat (limited to 'sys')
-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) |