From f14e3dc8acc970ceeca6870b7dd8450a0547fa60 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sun, 4 Dec 2016 17:20:01 -0800 Subject: [PATCH] sesman: must save guid in session data --- sesman/scp_v0.c | 2 +- sesman/session.c | 1 + sesman/session.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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(<ime, &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