diff options
-rw-r--r-- | utils/rpctrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 62d3c876..48daa078 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -404,7 +404,8 @@ new_receiver_info (mach_port_t right, mach_port_t owner) MACH_MSG_TYPE_MAKE_SEND_ONCE, &foo); if (err) error (2, err, "mach_port_request_notification"); - mach_port_deallocate (mach_task_self (), foo); + if (MACH_PORT_VALID (foo)) + mach_port_deallocate (mach_task_self (), foo); err = hurd_ihash_add (&traced_names, info->forward, info); if (err) |