summaryrefslogtreecommitdiffstats
path: root/crypto/openssh
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-03-16 08:03:48 +0000
committerdes <des@FreeBSD.org>2002-03-16 08:03:48 +0000
commit160859d70870af6d64ca201c85b7a15c6a0a0e46 (patch)
tree6910fca2fda7ec7ca639c967f1f01581a46fe783 /crypto/openssh
parentecd8851ade7589f2fe617c84718a700105ab473a (diff)
downloadFreeBSD-src-160859d70870af6d64ca201c85b7a15c6a0a0e46.zip
FreeBSD-src-160859d70870af6d64ca201c85b7a15c6a0a0e46.tar.gz
Diff reduction.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'crypto/openssh')
-rw-r--r--crypto/openssh/auth1.c2
-rw-r--r--crypto/openssh/auth2.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/crypto/openssh/auth1.c b/crypto/openssh/auth1.c
index 462b492..3df36e2 100644
--- a/crypto/openssh/auth1.c
+++ b/crypto/openssh/auth1.c
@@ -328,7 +328,7 @@ do_authloop(Authctxt *authctxt)
/* Do PAM auth with password */
authenticated = auth_pam_password(authctxt, password);
#else /* !USE_PAM */
- /* Try authentication with the password. */
+ /* Try authentication with the password. */
authenticated = auth_password(authctxt, password);
#endif /* USE_PAM */
diff --git a/crypto/openssh/auth2.c b/crypto/openssh/auth2.c
index 5b8ea1a..702695a 100644
--- a/crypto/openssh/auth2.c
+++ b/crypto/openssh/auth2.c
@@ -400,11 +400,10 @@ userauth_passwd(Authctxt *authctxt)
packet_done();
if (authctxt->valid &&
#ifdef USE_PAM
- auth_pam_password(authctxt, password) == 1
+ auth_password(authctxt, password) == 1)
#else
- auth_password(authctxt, password) == 1
+ auth_password(authctxt, password) == 1)
#endif
- )
authenticated = 1;
memset(password, 0, len);
xfree(password);
OpenPOWER on IntegriCloud