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) | |||
210 | authctxt->valid = 1; | 210 | authctxt->valid = 1; |
211 | debug2("input_userauth_request: setting up authctxt for %s", user); | 211 | debug2("input_userauth_request: setting up authctxt for %s", user); |
212 | #ifdef USE_PAM | 212 | #ifdef USE_PAM |
213 | start_pam(pw); | 213 | start_pam(pw->pw_name); |
214 | #endif | 214 | #endif |
215 | } else { | 215 | } else { |
216 | log("input_userauth_request: illegal user %s", user); | 216 | log("input_userauth_request: illegal user %s", user); |
217 | #ifdef USE_PAM | ||
218 | start_pam("NOUSER"); | ||
219 | #endif | ||
217 | } | 220 | } |
218 | authctxt->user = xstrdup(user); | 221 | authctxt->user = xstrdup(user); |
219 | authctxt->service = xstrdup(service); | 222 | authctxt->service = xstrdup(service); |