diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-02 00:11:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-07-02 00:11:40 +0000 |
commit | cac81dc878aaa1b3c08fe72acb6a241b862021fe (patch) | |
tree | 2321acaf4109f77aa33bda7a29735d7831a2c8c4 /sys/kern | |
parent | 06d20a21e217ba865f31d7a9971c3565efab833a (diff) |
structure copy the unp_connid to the other socket
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index a7bffce7b64..3bc4e57841f 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_usrreq.c,v 1.47 2010/07/01 17:20:48 deraadt Exp $ */ +/* $OpenBSD: uipc_usrreq.c,v 1.48 2010/07/02 00:11:39 deraadt Exp $ */ /* $NetBSD: uipc_usrreq.c,v 1.18 1996/02/09 19:00:50 christos Exp $ */ /* @@ -491,9 +491,7 @@ unp_connect(struct socket *so, struct mbuf *nam, struct proc *p) unp3->unp_flags |= UNP_FEIDS; so2 = so3; if (unp2->unp_flags & UNP_FEIDSBIND) { - unp->unp_connid.uid = unp2->unp_connid.uid; - unp->unp_connid.gid = unp2->unp_connid.gid; - unp->unp_connid.pid = unp2->unp_connid.pid; + unp->unp_connid = unp2->unp_connid; unp->unp_flags |= UNP_FEIDS; } } |