diff options
author | Damien Miller <djm@mindrot.org> | 2003-09-03 07:32:45 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-09-03 07:32:45 +1000 |
commit | 856f0be66908352828bb595f7ad5213623c0c610 (patch) | |
tree | 607c8df162abc4a5aa61cbaad86f9a4aaf71718a /auth2-passwd.c | |
parent | 39638b6aebf5ca69ba75c79c0cc0572e1f396258 (diff) |
- markus@cvs.openbsd.org 2003/08/26 09:58:43
[auth-passwd.c auth.c auth.h auth1.c auth2-none.c auth2-passwd.c]
[auth2.c monitor.c]
fix passwd auth for 'username leaks via timing'; with djm@, original
patches from solar
Diffstat (limited to 'auth2-passwd.c')
-rw-r--r-- | auth2-passwd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c index 8eb18f2e3..67fb4c921 100644 --- a/auth2-passwd.c +++ b/auth2-passwd.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth2-passwd.c,v 1.3 2003/04/08 20:21:28 itojun Exp $"); | 26 | RCSID("$OpenBSD: auth2-passwd.c,v 1.4 2003/08/26 09:58:43 markus Exp $"); |
27 | 27 | ||
28 | #include "xmalloc.h" | 28 | #include "xmalloc.h" |
29 | #include "packet.h" | 29 | #include "packet.h" |
@@ -47,7 +47,7 @@ userauth_passwd(Authctxt *authctxt) | |||
47 | logit("password change not supported"); | 47 | logit("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 (PRIVSEP(auth_password(authctxt, password)) == 1 && authctxt->valid | 50 | if (PRIVSEP(auth_password(authctxt, password)) == 1 |
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 |