summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/session.c b/session.c
index 5fb1ace00..3c759e472 100644
--- a/session.c
+++ b/session.c
@@ -1042,8 +1042,17 @@ do_setup_env(Session *s, const char *shell)
1042 s->authctxt->krb5_ticket_file); 1042 s->authctxt->krb5_ticket_file);
1043#endif 1043#endif
1044#ifdef USE_PAM 1044#ifdef USE_PAM
1045 /* Pull in any environment variables that may have been set by PAM. */ 1045 /*
1046 copy_environment(fetch_pam_environment(), &env, &envsize); 1046 * Pull in any environment variables that may have
1047 * been set by PAM.
1048 */
1049 {
1050 char **p;
1051
1052 p = fetch_pam_environment();
1053 copy_environment(p, &env, &envsize);
1054 free_pam_environment(p);
1055 }
1047#endif /* USE_PAM */ 1056#endif /* USE_PAM */
1048 1057
1049 if (auth_sock_name != NULL) 1058 if (auth_sock_name != NULL)