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