summaryrefslogtreecommitdiff
path: root/auth2-passwd.c
diff options
context:
space:
mode:
authordjm <djm>2003-09-02 21:32:45 +0000
committerdjm <djm>2003-09-02 21:32:45 +0000
commit1b389e189dc52528148c06137f048a405e0e2e7a (patch)
treeb9f1f03cb62c29a315f3644af00463ff7f7d275f /auth2-passwd.c
parent1674ef27ab36ae681e21871d48c5f530777b4a90 (diff)
downloadopenssh-1b389e189dc52528148c06137f048a405e0e2e7a.tar.gz
- 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2-passwd.c b/auth2-passwd.c
index 8eb18f2e..67fb4c92 100644
--- a/auth2-passwd.c
+++ b/auth2-passwd.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: auth2-passwd.c,v 1.3 2003/04/08 20:21:28 itojun Exp $");
+RCSID("$OpenBSD: auth2-passwd.c,v 1.4 2003/08/26 09:58:43 markus Exp $");
#include "xmalloc.h"
#include "packet.h"
@@ -47,7 +47,7 @@ userauth_passwd(Authctxt *authctxt)
logit("password change not supported");
password = packet_get_string(&len);
packet_check_eom();
- if (PRIVSEP(auth_password(authctxt, password)) == 1 && authctxt->valid
+ if (PRIVSEP(auth_password(authctxt, password)) == 1
#ifdef HAVE_CYGWIN
&& check_nt_auth(1, authctxt->pw)
#endif