summaryrefslogtreecommitdiffstats
path: root/sesman/sesman.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-02-05 05:46:48 +0000
committerjsorg71 <jsorg71>2006-02-05 05:46:48 +0000
commit59fc01e215e88d36ba533d514b8e907a27a824bc (patch)
tree35b280203e27fc041815dbec32db79727aa1e293 /sesman/sesman.c
parent9554e8520322335dbf11e689268aff1706861d7c (diff)
downloadxrdp-proprietary-59fc01e215e88d36ba533d514b8e907a27a824bc.tar.gz
xrdp-proprietary-59fc01e215e88d36ba533d514b8e907a27a824bc.zip
temp hack for starting Xrdp
Diffstat (limited to 'sesman/sesman.c')
-rw-r--r--sesman/sesman.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c
index 5fbbdb6f..fb9666ce 100644
--- a/sesman/sesman.c
+++ b/sesman/sesman.c
@@ -37,6 +37,7 @@ struct session_item g_session_items[100]; /* sesman.h */
extern int g_session_count;
#endif
struct config_sesman g_cfg; /* config.h */
+int g_server_type = 0; /* Xvnc 0 Xrdp 10 */
/**
*
@@ -134,8 +135,9 @@ sesman_main_loop()
if (version == 0)
{
in_uint16_be(in_s, code);
- if (code == 0) /* check username - password, start session */
- {
+ if (code == 0 || code == 10) /* check username - password, */
+ { /* start session */
+ g_server_type = code;
in_uint16_be(in_s, i);
in_uint8a(in_s, user, i);
user[i] = 0;