summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/tcp_usrreq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 1135150..a68345e 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -235,7 +235,7 @@ tcp_usr_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
struct inpcb *inp;
struct tcpcb *tp;
struct sockaddr_in *sinp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
@@ -264,7 +264,7 @@ tcp6_usr_bind(struct socket *so, struct sockaddr *nam, struct thread *td)
struct inpcb *inp;
struct tcpcb *tp;
struct sockaddr_in6 *sin6p;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
@@ -310,7 +310,7 @@ tcp_usr_listen(struct socket *so, struct thread *td)
int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
if (inp->inp_lport == 0)
@@ -328,7 +328,7 @@ tcp6_usr_listen(struct socket *so, struct thread *td)
int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
- const int inirw = INI_READ;
+ const int inirw = INI_WRITE;
COMMON_START();
if (inp->inp_lport == 0) {
OpenPOWER on IntegriCloud