summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-27 17:06:45 +0000
committerMiles Bader <miles@gnu.org>1996-01-27 17:06:45 +0000
commit39d940666837cad76d4650a7bdf23f2c9999235d (patch)
treefb8cb1f15b5d6693b8c2817f1faa71339f85bcf3
parent41808cd31b8b67b0860eea32ae346582bd2408ae (diff)
(fshelp_fetch_root):
If io_reauthenticate returns an error, just return MACH_PORT_NULL instead of aborting (the server probably died; not a good sign for the health of the translator, but it's better than dying ourselves...).
-rw-r--r--libfshelp/fetch-root.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index ffac383e..10464617 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -67,13 +67,13 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
mach_port_insert_right (mach_task_self (), port, port,port_type);
rend = mach_reply_port ();
+
err = io_reauthenticate (port, rend,
MACH_MSG_TYPE_MAKE_SEND);
- assert_perror (err);
-
- err = auth_user_authenticate (newauth, port, rend,
- MACH_MSG_TYPE_MAKE_SEND,
- &ret);
+ if (! err)
+ err = auth_user_authenticate (newauth, port, rend,
+ MACH_MSG_TYPE_MAKE_SEND,
+ &ret);
if (err)
ret = MACH_PORT_NULL;