summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fetch-root.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index 7d9761fd..7686b77d 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -59,6 +59,9 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
mach_port_t rend, ret;
error_t err;
+ if (port == MACH_PORT_NULL)
+ return port;
+
rend = mach_reply_port ();
err = io_reauthenticate (port, rend,
MACH_MSG_TYPE_MAKE_SEND);