summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-01-19 15:46:38 +1100
committerDamien Miller <djm@mindrot.org>2001-01-19 15:46:38 +1100
commit22e22bf9bab94862c860ad4ed652f308dda63f81 (patch)
treeb4d1a83f4ea81c3b1c82a3a5a28de21bbd5d4c2c /auth2.c
parentf569241db2e79b0bd7d1be6e288f2bd25e9c7ab4 (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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/auth2.c b/auth2.c
index 348c2f3a4..bab1c2ed8 100644
--- a/auth2.c
+++ b/auth2.c
@@ -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);