summaryrefslogtreecommitdiff
path: root/hurd/ports-get.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/ports-get.c')
-rw-r--r--hurd/ports-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/ports-get.c b/hurd/ports-get.c
index 7d6be6ed98..a4495a605e 100644
--- a/hurd/ports-get.c
+++ b/hurd/ports-get.c
@@ -37,7 +37,7 @@ _hurd_ports_get (unsigned int which, mach_port_t *result)
return EINVAL;
if (which >= INIT_PORT_MAX || _hurd_ports_getters[which] == NULL)
return HURD_PORT_USE (&_hurd_ports[which],
- (*result = port) == MACH_PORT_NULL ? 0
+ (*result = port) == MACH_PORT_NULL ? 0
: __mach_port_mod_refs (__mach_task_self (),
port, MACH_PORT_RIGHT_SEND,
+1));