From a2bbbd8cc336bedbda61a6af47d90bcccbe6aead Mon Sep 17 00:00:00 2001 From: ArvidNorr Date: Wed, 16 Jan 2013 01:28:35 -0800 Subject: Display PAM error in gateway setup, use domain name as IP/DNS, changed how the socket is closed --- sesman/scp_v1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sesman/scp_v1.c') 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) -- cgit v1.2.3