summaryrefslogtreecommitdiffstats
path: root/auth2-passwd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-04-29 19:12:07 +1000
committerDamien Miller <djm@mindrot.org>2003-04-29 19:12:07 +1000
commitfad82e8999e790899083f9e22a1841148d746df6 (patch)
tree14606498951158ca5339dd8be7b6d39367b7286c /auth2-passwd.c
parent0e7f4363f3d7b2ae707709607fd816f663c7449a (diff)
- (djm) Add back radix.o (used by AFS support), after it went missing fromV_3_6_1_P2
Makefile many moons ago - (djm) Apply "owl-always-auth" patch from Openwall/Solar Designer - (djm) Fix blibpath specification for AIX/gcc - (djm) Some systems have basename in -lgen. Fix from ayamura@ayamura.org
Diffstat (limited to 'auth2-passwd.c')
-rw-r--r--auth2-passwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c
index a8f15161..5026969f 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -44,14 +44,14 @@ userauth_passwd(Authctxt *authctxt)
u_int len;
change = packet_get_char();
if (change)
- logit("password change not supported");
+ log("password change not supported");
password = packet_get_string(&len);
packet_check_eom();
- if (authctxt->valid &&
+ if (PRIVSEP(auth_password(authctxt, password)) == 1 && authctxt->valid
#ifdef HAVE_CYGWIN
- check_nt_auth(1, authctxt->pw) &&
+ && check_nt_auth(1, authctxt->pw)
#endif
- PRIVSEP(auth_password(authctxt, password)) == 1)
+ )
authenticated = 1;
memset(password, 0, len);
xfree(password);