From 3a047a3fccce1c4ecabd04b5963f9e04cc54a165 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 24 Jun 1996 20:00:44 +0000 Subject: (fshelp_fetch_root): Deal properly with errors from auth_makeauth. --- libfshelp/fetch-root.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c index e743d638..b1813fd8 100644 --- a/libfshelp/fetch-root.c +++ b/libfshelp/fetch-root.c @@ -112,7 +112,8 @@ fshelp_fetch_root (struct transbox *box, void *cookie, err = auth_makeauth (ourauth, 0, MACH_MSG_TYPE_MAKE_SEND, 0, uidarray, 1, uidarray, 2, gidarray, 1, gidarray, 2, &newauth); - assert_perror (err); + if (err) + goto return_error; bzero (ports, INIT_PORT_MAX * sizeof (mach_port_t)); bzero (fds, (STDERR_FILENO + 1) * sizeof (mach_port_t)); -- cgit v1.2.3