summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_sockbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/uipc_sockbuf.c')
-rw-r--r--sys/kern/uipc_sockbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c
index 4e167bd..91f152e 100644
--- a/sys/kern/uipc_sockbuf.c
+++ b/sys/kern/uipc_sockbuf.c
@@ -249,6 +249,7 @@ sonewconn(head, connstatus)
sodealloc(so);
return ((struct socket *)0);
}
+ so->so_state |= connstatus;
ACCEPT_LOCK();
if (connstatus) {
TAILQ_INSERT_TAIL(&head->so_comp, so, so_list);
@@ -279,7 +280,6 @@ sonewconn(head, connstatus)
}
ACCEPT_UNLOCK();
if (connstatus) {
- so->so_state |= connstatus;
sorwakeup(head);
wakeup_one(&head->so_timeo);
}
OpenPOWER on IntegriCloud