summaryrefslogtreecommitdiffstats
path: root/auth1.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-29 04:08:28 +0100
committerDamien Miller <djm@mindrot.org>2001-12-29 04:08:28 +0100
commit0dea79d6b6ea4699fa4dfd19b07adbff1d736d70 (patch)
treebcbaf8b74598f0b3752334f71aa194c48128d3b5 /auth1.c
parent - (djm) Remove recommendation to use GNU make, we should support most (diff)
downloadopenssh-0dea79d6b6ea4699fa4dfd19b07adbff1d736d70.tar.xz
openssh-0dea79d6b6ea4699fa4dfd19b07adbff1d736d70.zip
- (djm) Apply Cygwin pointer deref fix from Corinna Vinschen
<vinschen@redhat.com> Could be abused to guess valid usernames
Diffstat (limited to 'auth1.c')
-rw-r--r--auth1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth1.c b/auth1.c
index d7e80c28a..3aac26fcc 100644
--- a/auth1.c
+++ b/auth1.c
@@ -313,9 +313,9 @@ do_authloop(Authctxt *authctxt)
#ifdef HAVE_CYGWIN
if (authenticated &&
- !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD,pw->pw_uid)) {
+ !check_nt_auth(type == SSH_CMSG_AUTH_PASSWORD, pw)) {
packet_disconnect("Authentication rejected for uid %d.",
- (int)pw->pw_uid);
+ pw == NULL ? -1 : pw->pw_uid);
authenticated = 0;
}
#else