diff options
Diffstat (limited to 'auth2-passwd.c')
-rw-r--r-- | auth2-passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c index a8f15161a..5026969f8 100644 --- a/auth2-passwd.c +++ b/auth2-passwd.c | |||
@@ -44,14 +44,14 @@ userauth_passwd(Authctxt *authctxt) | |||
44 | u_int len; | 44 | u_int len; |
45 | change = packet_get_char(); | 45 | change = packet_get_char(); |
46 | if (change) | 46 | if (change) |
47 | logit("password change not supported"); | 47 | log("password change not supported"); |
48 | password = packet_get_string(&len); | 48 | password = packet_get_string(&len); |
49 | packet_check_eom(); | 49 | packet_check_eom(); |
50 | if (authctxt->valid && | 50 | if (PRIVSEP(auth_password(authctxt, password)) == 1 && authctxt->valid |
51 | #ifdef HAVE_CYGWIN | 51 | #ifdef HAVE_CYGWIN |
52 | check_nt_auth(1, authctxt->pw) && | 52 | && check_nt_auth(1, authctxt->pw) |
53 | #endif | 53 | #endif |
54 | PRIVSEP(auth_password(authctxt, password)) == 1) | 54 | ) |
55 | authenticated = 1; | 55 | authenticated = 1; |
56 | memset(password, 0, len); | 56 | memset(password, 0, len); |
57 | xfree(password); | 57 | xfree(password); |