summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-02-21 22:13:12 +0000
committerMiles Bader <miles@gnu.org>1996-02-21 22:13:12 +0000
commitb2931bd043fb73cbe498204e5a733af1350a2234 (patch)
tree38e312bea6b40d1694ec667541156193997a736d
parent17bffcb948a03407c527337af6d0652622f7d4cc (diff)
(fshelp_fetch_root): Make sure the returned fsys control port is valid.
-rw-r--r--libfshelp/fetch-root.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index 1daaa202..1504204f 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -150,7 +150,11 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
if (err)
return err;
-
+
+ if (! MACH_PORT_VALID (control))
+ /* The start translator succeeded, but it returned a bogus port. */
+ return EDIED;
+
box->active = control;
}