aboutsummaryrefslogtreecommitdiff
path: root/pflocal/pf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pflocal/pf.c')
-rw-r--r--pflocal/pf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pflocal/pf.c b/pflocal/pf.c
index d72e01b5..32c12e17 100644
--- a/pflocal/pf.c
+++ b/pflocal/pf.c
@@ -1,6 +1,6 @@
/* Protocol family operations
- Copyright (C) 1995, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1999, 2000, 2008 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -108,12 +108,13 @@ 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;
}
/* Implement socket_whatis_address as described in <hurd/socket.defs>.
- Since we cannot tell what our adress is, return an empty string as
+ Since we cannot tell what our address is, return an empty string as
the file name. This is primarily for the implementation of accept
and recvfrom. The functions getsockname and getpeername remain
unsupported for the local namespace. */