diff options
author | Roland McGrath <roland@gnu.org> | 2000-03-17 19:47:24 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2000-03-17 19:47:24 +0000 |
commit | 8933ae5f979cfd9e0c529c3c6111fb3bb67a43ee (patch) | |
tree | 8f1733673aa795e115e5c1df0446d7ec318be05e /boot | |
parent | c74246a51425eb88d6cbb52b1c9fab19883b35d1 (diff) |
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* boot.c (S_io_reauthenticate): Check mach_port_insert_right result
with assert_perror.
Diffstat (limited to 'boot')
-rw-r--r-- | boot/boot.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <termios.h> #include <error.h> #include <hurd.h> +#include <assert.h> 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, |