diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-07-18 01:29:43 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-07-18 01:29:43 +0000 |
| commit | 2260c03d77cc9130374e042bebfe8c56594fba1d (patch) | |
| tree | 409ec598a4cbb5b30085d3442f175af954a185bb /sys/kern/uipc_usrreq.c | |
| parent | 96c370ccf50547a864d3afa8b67cb9da8fcabfa6 (diff) | |
Notes
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
| -rw-r--r-- | sys/kern/uipc_usrreq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 74740124f563..1a87d14a16a6 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -794,17 +794,17 @@ unp_connect(so, nam, td) error = VOP_ACCESS(vp, VWRITE, td->td_ucred, td); if (error) goto bad; + mtx_unlock(&Giant); + UNP_LOCK(); so2 = vp->v_socket; if (so2 == NULL) { error = ECONNREFUSED; - goto bad; + goto bad2; } if (so->so_type != so2->so_type) { error = EPROTOTYPE; - goto bad; + goto bad2; } - mtx_unlock(&Giant); - UNP_LOCK(); if (so->so_proto->pr_flags & PR_CONNREQUIRED) { if (so2->so_options & SO_ACCEPTCONN) { /* |
