diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-03-07 13:32:16 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-03-07 13:32:16 +1100 |
commit | ac0c4c9c1d511839b2c86ebe5994298b524ceffd (patch) | |
tree | 5c10202d0e2b3e0f7f67cbaa41bc024a0d86abac /session.c | |
parent | c738e6c646aa0b588f50e953b4d3931c29e9ab28 (diff) |
- (dtucker) [session.c] Also initialize creds to NULL for handing to
setpcred.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 && |