diff options
author | Damien Miller <djm@mindrot.org> | 2001-01-19 15:46:38 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-01-19 15:46:38 +1100 |
commit | 22e22bf9bab94862c860ad4ed652f308dda63f81 (patch) | |
tree | b4d1a83f4ea81c3b1c82a3a5a28de21bbd5d4c2c /auth2.c | |
parent | f569241db2e79b0bd7d1be6e288f2bd25e9c7ab4 (diff) |
- (djm) Merge patch from Tim Waugh (via Nalin Dahyabhai <nalin@redhat.com>)
to fix NULL pointer deref and fake authloop breakage in PAM code.
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -210,10 +210,13 @@ input_userauth_request(int type, int plen, void *ctxt) authctxt->valid = 1; debug2("input_userauth_request: setting up authctxt for %s", user); #ifdef USE_PAM - start_pam(pw); + start_pam(pw->pw_name); #endif } else { log("input_userauth_request: illegal user %s", user); +#ifdef USE_PAM + start_pam("NOUSER"); +#endif } authctxt->user = xstrdup(user); authctxt->service = xstrdup(service); |