diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-22 02:52:22 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-22 02:52:22 +0000 |
commit | df78fc03f68f3959f42fcba1af31484887e6e356 (patch) | |
tree | b548097eb0cdd4bd7a9c592f710e361d41585ee2 /pflocal | |
parent | 7189584e78f6460d4b04ec0dbf728ebda2a75283 (diff) |
2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
* pf.c (S_socket_fabricate_address): Drop one reference from addr since
we only take the send right.
* socket.c (S_socket_name): Likewise.
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/ChangeLog | 6 | ||||
-rw-r--r-- | pflocal/pf.c | 1 | ||||
-rw-r--r-- | pflocal/socket.c | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/pflocal/ChangeLog b/pflocal/ChangeLog index e36529d0..6c3b1d14 100644 --- a/pflocal/ChangeLog +++ b/pflocal/ChangeLog @@ -1,3 +1,9 @@ +2008-07-22 Samuel Thibault <samuel.thibault@ens-lyon.org> + + * pf.c (S_socket_fabricate_address): Drop one reference from addr since + we only take the send right. + * socket.c (S_socket_name): Likewise. + 2007-11-13 Thomas Schwinge <tschwinge@gnu.org> * io.c (S_io_stat): Adapt to ``struct stat'' changes. diff --git a/pflocal/pf.c b/pflocal/pf.c index d72e01b5..c0c69969 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -108,6 +108,7 @@ S_socket_fabricate_address (mach_port_t pf, *addr_port = ports_get_right (addr); *addr_port_type = MACH_MSG_TYPE_MAKE_SEND; + ports_port_deref (addr); return 0; } diff --git a/pflocal/socket.c b/pflocal/socket.c index 0bc72066..316f6d78 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -245,6 +245,7 @@ S_socket_name (struct sock_user *user, *addr_port = ports_get_right (addr); *addr_port_type = MACH_MSG_TYPE_MAKE_SEND; + ports_port_deref (addr); return 0; } |