From 8933ae5f979cfd9e0c529c3c6111fb3bb67a43ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 17 Mar 2000 19:47:24 +0000 Subject: 2000-03-17 Roland McGrath * boot.c (S_io_reauthenticate): Check mach_port_insert_right result with assert_perror. --- boot/boot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'boot') diff --git a/boot/boot.c b/boot/boot.c index ece9f281..dc5ea083 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -72,6 +72,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include +#include static struct termios orig_tty_state; static int isig; @@ -1681,9 +1682,10 @@ S_io_reauthenticate (mach_port_t object, unsigned int gulen = 0, aulen = 0, gglen = 0, aglen = 0; error_t err; - mach_port_insert_right (mach_task_self (), object, object, - MACH_MSG_TYPE_MAKE_SEND); - + err = mach_port_insert_right (mach_task_self (), object, object, + MACH_MSG_TYPE_MAKE_SEND); + assert_perror (err); + if (! auth_server_authenticate (authserver, rend, MACH_MSG_TYPE_COPY_SEND, object, MACH_MSG_TYPE_COPY_SEND, -- cgit v1.2.3