summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-29 15:24:08 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-29 15:24:08 +0000
commit0d844c38d5d4c5da60aba72b71620428679ce1e4 (patch)
tree4b96521c83f58c99e3393a938c744bad6076f684 /libports
parentba51a0f36feb19b4983abd88cfc03ba58ea779c6 (diff)
(ports_reallocate_port): Require port to have a current port
right.
Diffstat (limited to 'libports')
-rw-r--r--libports/reallocate-port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libports/reallocate-port.c b/libports/reallocate-port.c
index 42ac60bf..35dd4883 100644
--- a/libports/reallocate-port.c
+++ b/libports/reallocate-port.c
@@ -31,6 +31,8 @@ ports_reallocate_port (void *portstruct)
int dropref = 0;
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);