diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-12-13 22:09:37 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-12-13 22:09:37 +0000 |
commit | 36784fd2c4f908d39e9ed1d9454f22f8aea9d928 (patch) | |
tree | f3180d6ad4d9ffb0336175cb52ae402c484c23ca /sys/kern/uipc_usrreq.c | |
parent | 7460365e6c74248431b9510c0e596e3ed2b0c166 (diff) | |
download | FreeBSD-src-36784fd2c4f908d39e9ed1d9454f22f8aea9d928.zip FreeBSD-src-36784fd2c4f908d39e9ed1d9454f22f8aea9d928.tar.gz |
o Back out portions of 1.50 and 1.47, eliminating sonewconn3() and
always deriving the credential for a newly accepted connection from
the listen socket. Previously, the selection of the credential
depended on the protocol: UNIX domain sockets would use the
connecting process's credential, and protocols supporting a creation
of the socket before the receiving end called accept() would use
the listening socket. After this change, it is always the listening
credential.
Reviewed by: green
Diffstat (limited to 'sys/kern/uipc_usrreq.c')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0cd408f..a7ffcff 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -691,7 +691,7 @@ unp_connect(so, nam, td) } if (so->so_proto->pr_flags & PR_CONNREQUIRED) { if ((so2->so_options & SO_ACCEPTCONN) == 0 || - (so3 = sonewconn3(so2, 0, td)) == 0) { + (so3 = sonewconn(so2, 0)) == 0) { error = ECONNREFUSED; goto bad; } |