summaryrefslogtreecommitdiffstats
path: root/sesman/scp_v1.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 /sesman/scp_v1.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 'sesman/scp_v1.c')
-rw-r--r--sesman/scp_v1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sesman/scp_v1.c b/sesman/scp_v1.c
index 295fbce4..d3f0ab7f 100644
--- a/sesman/scp_v1.c
+++ b/sesman/scp_v1.c
@@ -50,7 +50,7 @@ scp_v1_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
retries = g_cfg->sec.login_retry;
current_try = retries;
- data = auth_userpass(s->username, s->password);
+ data = auth_userpass(s->username, s->password,NULL);
/*LOG_DBG("user: %s\npass: %s", s->username, s->password);*/
while ((!data) && ((retries == 0) || (current_try > 0)))
@@ -65,7 +65,7 @@ scp_v1_process(struct SCP_CONNECTION *c, struct SCP_SESSION *s)
{
case SCP_SERVER_STATE_OK:
/* all ok, we got new username and password */
- data = auth_userpass(s->username, s->password);
+ data = auth_userpass(s->username, s->password,NULL);
/* one try less */
if (current_try > 0)