From 0d844c38d5d4c5da60aba72b71620428679ce1e4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 29 Mar 1996 15:24:08 +0000 Subject: (ports_reallocate_port): Require port to have a current port right. --- libports/reallocate-port.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libports') 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); -- cgit v1.2.3