summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-29 15:23:38 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-29 15:23:38 +0000
commitba51a0f36feb19b4983abd88cfc03ba58ea779c6 (patch)
treeb2387f7670d88c9f56f87e34713b688e91a638e8
parente5c73a37cc8acc4cf12b18df08b7fe10f5d83cf8 (diff)
(ports_reallocate_from_external): Require port to have a current port
right.
-rw-r--r--libports/reallocate-from-external.c2
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);