Fix for an error which blocks X11rdp session to be started

This commit is contained in:
ilsimo 2006-10-28 15:04:51 +00:00
parent cf00c1707d
commit ef1605e647
1 changed files with 1 additions and 2 deletions

View File

@ -31,7 +31,6 @@
void DEFAULT_CC
scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
{
int code=0;
int display=0;
long data;
struct session_item* s_item;
@ -53,7 +52,7 @@ scp_v0_process(struct SCP_CONNECTION* c, struct SCP_SESSION* s)
if (1 == access_login_allowed(s->username))
{
log_message(LOG_LEVEL_INFO, "granted TS access to user %s", s->username);
if (0 == code)
if (SCP_SESSION_TYPE_XVNC == s->type)
{
log_message(LOG_LEVEL_INFO, "starting Xvnc session...");
display = session_start(s->width, s->height, s->bpp, s->username, s->password,