diff options
-rw-r--r-- | libports/reallocate-from-external.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libports/reallocate-from-external.c b/libports/reallocate-from-external.c index 3b4b8de3..80b2905e 100644 --- a/libports/reallocate-from-external.c +++ b/libports/reallocate-from-external.c @@ -38,6 +38,8 @@ ports_reallocate_from_external (void *portstruct, mach_port_t receive) mutex_lock (&_ports_lock); + assert (pi->port_right); + err = mach_port_mod_refs (mach_task_self (), pi->port_right, MACH_PORT_RIGHT_RECEIVE, -1); assert_perror (err); |