diff options
-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; } |