summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-07-02 22:14:22 +0000
committerRoland McGrath <roland@gnu.org>2001-07-02 22:14:22 +0000
commit48729448adb9f1ed91043841f436f68209c774f7 (patch)
tree8386b4294db490c9563881335792fd50aceaa818 /init/init.c
parentafb685b3b07c7dd8836c8bf7dcff1da6a0d6204a (diff)
2001-07-02 Roland McGrath <roland@frob.com>
* init.c (reboot_system): Don't pass null pointer to RPC out param. Thanks to Moritz Schulte <moritz@chaosdorf.de> for finding this.
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/init/init.c b/init/init.c
index a9cbafc0..84e788cb 100644
--- a/init/init.c
+++ b/init/init.c
@@ -1,6 +1,6 @@
/* Start and maintain hurd core servers and system run state
- Copyright (C) 1993,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
+ Copyright (C) 1993,94,95,96,97,98,99,2000,01 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or modify
@@ -267,8 +267,10 @@ reboot_system (int flags)
u_int pisize = 0;
char *noise;
unsigned noise_len;
- err = proc_getprocinfo (procserver, pp[ind], 0,
- (int **)&pi, &pisize, &noise,&noise_len);
+ int flags;
+ err = proc_getprocinfo (procserver, pp[ind], &flags,
+ (int **)&pi, &pisize,
+ &noise, &noise_len);
if (err == MACH_SEND_INVALID_DEST)
goto procbad;
if (err)
@@ -726,7 +728,7 @@ init_stdarrays ()
__USEPORT (AUTH, auth_makeauth (port, 0, MACH_MSG_TYPE_COPY_SEND, 0,
0, 0, 0, 0, 0, 0, 0, 0, &nullauth));
- /* MAKE_SEND is safe in these transactions because we destroy REF
+ /* MAKE_SEND is safe in these transactions because we destroy REF
ourselves each time. */
pt = getcwdir ();
ref = mach_reply_port ();