summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--session.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9cb557d7..f80d79aa3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
5 - (dtucker) [session.c] Bug #1567: move setpcred call to before chroot and 5 - (dtucker) [session.c] Bug #1567: move setpcred call to before chroot and
6 do not set real uid, since that's needed for the chroot, and will be set 6 do not set real uid, since that's needed for the chroot, and will be set
7 by permanently_set_uid. 7 by permanently_set_uid.
8 - (dtucker) [session.c] Also initialize creds to NULL for handing to
9 setpcred.
8 10
920100305 1120100305
10 - OpenBSD CVS Sync 12 - OpenBSD CVS Sync
diff --git a/session.c b/session.c
index 8f978faa6..b384b7d86 100644
--- a/session.c
+++ b/session.c
@@ -1537,7 +1537,7 @@ do_setusercontext(struct passwd *pw)
1537 * chroot directory, we don't override anything. 1537 * chroot directory, we don't override anything.
1538 */ 1538 */
1539 { 1539 {
1540 char **creds, *chroot_creds[] = 1540 char **creds = NULL, *chroot_creds[] =
1541 { "REAL_USER=root", NULL }; 1541 { "REAL_USER=root", NULL };
1542 1542
1543 if (options.chroot_directory != NULL && 1543 if (options.chroot_directory != NULL &&