diff options
author | Damien Miller <djm@mindrot.org> | 2001-12-29 04:08:28 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-12-29 04:08:28 +0100 |
commit | 0dea79d6b6ea4699fa4dfd19b07adbff1d736d70 (patch) | |
tree | bcbaf8b74598f0b3752334f71aa194c48128d3b5 /auth1.c | |
parent | - (djm) Remove recommendation to use GNU make, we should support most (diff) | |
download | openssh-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |