summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-12-04 17:20:01 -0800
committerJay Sorg <jay.sorg@gmail.com>2016-12-04 17:20:01 -0800
commitf14e3dc8acc970ceeca6870b7dd8450a0547fa60 (patch)
tree872294e6e429467abfc3edcd24bca9de6fcc5252
parent9a517b34f0f4eb546c46ad4185260f4b66773a8c (diff)
downloadxrdp-proprietary-f14e3dc8acc970ceeca6870b7dd8450a0547fa60.tar.gz
xrdp-proprietary-f14e3dc8acc970ceeca6870b7dd8450a0547fa60.zip
sesman: must save guid in session data
-rw-r--r--sesman/scp_v0.c2
-rw-r--r--sesman/session.c1
-rw-r--r--sesman/session.h1
3 files changed, 3 insertions, 1 deletions
diff --git a/sesman/scp_v0.c b/sesman/scp_v0.c
index 0b913a09..81ecc3a6 100644
--- a/sesman/scp_v0.c
+++ b/sesman/scp_v0.c
@@ -77,7 +77,7 @@ scp_v0_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
if (s_item != 0)
{
display = s_item->display;
-
+ g_memcpy(s->guid, s_item->guid, 16);
if (0 != s->client_ip)
{
log_message( LOG_LEVEL_INFO, "++ reconnected session: username %s, "
diff --git a/sesman/session.c b/sesman/session.c
index de3b9f70..c3bb581b 100644
--- a/sesman/session.c
+++ b/sesman/session.c
@@ -804,6 +804,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s)
temp->item->data = data;
g_strncpy(temp->item->client_ip, s->client_ip, 255); /* store client ip data */
g_strncpy(temp->item->name, s->username, 255);
+ g_memcpy(temp->item->guid, s->guid, 16);
ltime = g_time1();
localtime_r(&ltime, &stime);
diff --git a/sesman/session.h b/sesman/session.h
index e5b15834..73313595 100644
--- a/sesman/session.h
+++ b/sesman/session.h
@@ -76,6 +76,7 @@ struct session_item
struct session_date disconnect_time;
struct session_date idle_time;
char client_ip[256];
+ tui8 guid[16];
};
struct session_chain