diff options
author | Miles Bader <miles@gnu.org> | 1996-02-21 22:13:12 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-02-21 22:13:12 +0000 |
commit | b2931bd043fb73cbe498204e5a733af1350a2234 (patch) | |
tree | 38e312bea6b40d1694ec667541156193997a736d /libfshelp | |
parent | 17bffcb948a03407c527337af6d0652622f7d4cc (diff) |
(fshelp_fetch_root): Make sure the returned fsys control port is valid.
Diffstat (limited to 'libfshelp')
-rw-r--r-- | libfshelp/fetch-root.c | 6 |
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; } |