From 7b9011628ec0dea3e01b19b75013ce5cf5b9c841 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 21 Sep 2017 14:22:33 +0200 Subject: fshelp: Fix fetching control ports. * libfshelp/fetch-control.c (fshelp_fetch_control): When a port is stale, do not try to deallocate it. --- libfshelp/fetch-control.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libfshelp/fetch-control.c') diff --git a/libfshelp/fetch-control.c b/libfshelp/fetch-control.c index 0a11197a..3b05e11f 100644 --- a/libfshelp/fetch-control.c +++ b/libfshelp/fetch-control.c @@ -32,11 +32,7 @@ fshelp_fetch_control (struct transbox *box, MACH_PORT_RIGHT_SEND, 1); if (err == KERN_INVALID_RIGHT) - { - err = mach_port_deallocate (mach_task_self (), *control); - assert_perror_backtrace (err); - *control = box->active = MACH_PORT_NULL; - } + *control = box->active = MACH_PORT_NULL; return err; } -- cgit v1.2.3