summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_usrreq.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2007-02-13 21:00:57 +0000
committerrwatson <rwatson@FreeBSD.org>2007-02-13 21:00:57 +0000
commitc8c4b22747cb8b7868186a88018870fd13498b9b (patch)
tree74d152c7f0a63945dc5697fb66d045dc4264109d /sys/kern/uipc_usrreq.c
parenta9a4d856adbb5a1295bbaf39cf5381d360be5f85 (diff)
downloadFreeBSD-src-c8c4b22747cb8b7868186a88018870fd13498b9b.zip
FreeBSD-src-c8c4b22747cb8b7868186a88018870fd13498b9b.tar.gz
Set UNP_CONNECTING when committing to moving ahead in unp_connect().
This logic was lost when merging the remainder of these changes in 1.178.
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r--sys/kern/uipc_usrreq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c
index eabe2ff..5238fe5 100644
--- a/sys/kern/uipc_usrreq.c
+++ b/sys/kern/uipc_usrreq.c
@@ -952,6 +952,7 @@ unp_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
UNP_UNLOCK();
return (EALREADY);
}
+ unp->unp_flags |= UNP_CONNECTING;
UNP_UNLOCK();
sa = malloc(sizeof(struct sockaddr_un), M_SONAME, M_WAITOK);
mtx_lock(&Giant);
OpenPOWER on IntegriCloud