summaryrefslogtreecommitdiff
path: root/libfshelp/fetch-control.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-09-21 14:22:33 +0200
committerJustus Winter <justus@gnupg.org>2017-09-25 13:06:10 +0200
commit7b9011628ec0dea3e01b19b75013ce5cf5b9c841 (patch)
tree60de1521140b4cf5597b3b1b616bed62f7d896d9 /libfshelp/fetch-control.c
parent89a49ec8b3a847f3b770cff6a4a80b98b94ad7bf (diff)
fshelp: Fix fetching control ports.
* libfshelp/fetch-control.c (fshelp_fetch_control): When a port is stale, do not try to deallocate it.
Diffstat (limited to 'libfshelp/fetch-control.c')
-rw-r--r--libfshelp/fetch-control.c6
1 files changed, 1 insertions, 5 deletions
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;
}