summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-11-11 02:12:56 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-11-11 02:12:56 -0800
commit253f6ff555120e0553ccea542faeae95f17d5639 (patch)
tree66e2aa607e79580bd31ba34141b4f1c63f06bfd7 /sesman
parentc39d2b0912cc6a5fec7dd07b5fd03779df692999 (diff)
downloadxrdp-proprietary-253f6ff555120e0553ccea542faeae95f17d5639.tar.gz
xrdp-proprietary-253f6ff555120e0553ccea542faeae95f17d5639.zip
sesman: only check vnc auth file if vnc session
Diffstat (limited to 'sesman')
-rw-r--r--sesman/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sesman/session.c b/sesman/session.c
index 856c969e..755b57bc 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -636,7 +636,6 @@ session_start_fork(int width, int height, int bpp, char *username,
env_set_user(username, passwd_file, display,
g_cfg->session_variables1,
g_cfg->session_variables2);
- env_check_password_file(passwd_file, password);
g_snprintf(text, 255, "%d", g_cfg->sess.max_idle_time);
g_setenv("XRDP_SESMAN_MAX_IDLE_TIME", text, 1);
@@ -676,6 +675,7 @@ session_start_fork(int width, int height, int bpp, char *username,
}
else if (type == SESMAN_SESSION_TYPE_XVNC)
{
+ env_check_password_file(passwd_file, password);
xserver_params = list_create();
xserver_params->auto_free = 1;