diff options
author | Manuel Menal <mmenal@hurdfr.org> | 2010-09-19 18:45:33 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-19 18:45:33 +0200 |
commit | 94d5d954073f67a96b126e20b626e95033f776f0 (patch) | |
tree | 95c0ffee4d2624976e60051a3d55eee34ac5844a /pflocal | |
parent | be9be179a2cde041fbe042362ee80f9874233953 (diff) |
Fix port transmission over pflocal
* pflocal/socket.c (S_socket_recv): Return transmitted port to caller
thanks to MACH_MSG_TYPE_COPY_SEND instead of MACH_MSG_TYPE_MAKE_SEND
(since this is a send right here).
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pflocal/socket.c b/pflocal/socket.c index 69838f11..c5c4e1df 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -395,7 +395,7 @@ S_socket_recv (struct sock_user *user, /* Setup mach ports for return. */ { *addr_type = MACH_MSG_TYPE_MAKE_SEND; - *ports_type = MACH_MSG_TYPE_MAKE_SEND; + *ports_type = MACH_MSG_TYPE_COPY_SEND; if (source_addr) { *addr = ports_get_right (source_addr); |