summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_wm.c
diff options
context:
space:
mode:
authorArvidNorr <norrarvid@gmail.com>2013-01-16 01:28:35 -0800
committerArvidNorr <norrarvid@gmail.com>2013-01-16 01:28:35 -0800
commita2bbbd8cc336bedbda61a6af47d90bcccbe6aead (patch)
tree9329f489b5dd4e245ee4c635d7dd18f553e260f3 /xrdp/xrdp_wm.c
parentb2c242f50eed96431e19c5905fc1c0269709da7c (diff)
downloadxrdp-proprietary-a2bbbd8cc336bedbda61a6af47d90bcccbe6aead.tar.gz
xrdp-proprietary-a2bbbd8cc336bedbda61a6af47d90bcccbe6aead.zip
Display PAM error in gateway setup, use domain name as IP/DNS, changed how the socket is closed
Diffstat (limited to 'xrdp/xrdp_wm.c')
-rw-r--r--xrdp/xrdp_wm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index 24362f54..27a794a0 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -540,7 +540,12 @@ xrdp_wm_init(struct xrdp_wm *self)
names->auto_free = 1;
values = list_create();
values->auto_free = 1;
- g_strncpy(section_name, self->session->client_info->domain, 255);
+ /* domain names that starts with '_' are reserved for IP/DNS to simplify
+ * for the user in a gateway setup */
+ if(self->session->client_info->domain[0]!='_')
+ {
+ g_strncpy(section_name, self->session->client_info->domain, 255);
+ }
if (section_name[0] == 0)
{