diff options
author | ilsimo <ilsimo> | 2007-11-12 12:40:41 +0000 |
---|---|---|
committer | ilsimo <ilsimo> | 2007-11-12 12:40:41 +0000 |
commit | a3202aea6acdd346c8ad0383b827c4d677e97fcb (patch) | |
tree | 10b27d13c8ffa6c9e00e3a49475cc942372b065c /sesman | |
parent | 311b688ad73d8b9a834192daafdc8fedc40e0a04 (diff) | |
download | xrdp-proprietary-a3202aea6acdd346c8ad0383b827c4d677e97fcb.tar.gz xrdp-proprietary-a3202aea6acdd346c8ad0383b827c4d677e97fcb.zip |
fix for sesman not checking username when returning disconnected session list
Diffstat (limited to 'sesman')
-rw-r--r-- | sesman/session.c | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/sesman/session.c b/sesman/session.c index 697d261f..30c0d874 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -645,19 +645,23 @@ session_get_byuser(char* user, int* cnt) index = 0; while (tmp != 0) { - (sess[index]).SID=tmp->item->pid; - (sess[index]).type=tmp->item->type; - (sess[index]).height=tmp->item->height; - (sess[index]).width=tmp->item->width; - (sess[index]).bpp=tmp->item->bpp; +#warning FIXME: we should get only disconnected sessions! + if (!g_strncasecmp(user, tmp->item->name, 256)) + { + (sess[index]).SID=tmp->item->pid; + (sess[index]).type=tmp->item->type; + (sess[index]).height=tmp->item->height; + (sess[index]).width=tmp->item->width; + (sess[index]).bpp=tmp->item->bpp; #warning FIXME: setting idle times and such - (sess[index]).idle_days=0; - (sess[index]).idle_hours=0; - (sess[index]).idle_minutes=0; + (sess[index]).idle_days=0; + (sess[index]).idle_hours=0; + (sess[index]).idle_minutes=0; + index++; + } /* go on */ tmp=tmp->next; - index++; } /*THREAD-FIX release chain lock */ |