From b2931bd043fb73cbe498204e5a733af1350a2234 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 21 Feb 1996 22:13:12 +0000 Subject: (fshelp_fetch_root): Make sure the returned fsys control port is valid. --- libfshelp/fetch-root.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libfshelp/fetch-root.c') 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; } -- cgit v1.2.3