diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-03-08 23:04:06 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-03-08 23:04:06 +1100 |
commit | dbf7a74ee569a9544276db42eb7aee1141072a24 (patch) | |
tree | f9aea6fab5efea9441557696611b04a065ad8128 /monitor_wrap.c | |
parent | 86c093d2895989d1258459b797ce3630eaa47d1a (diff) |
- (dtucker) [auth-pam.c auth-pam.h auth1.c auth2.c monitor.c monitor_wrap.c
monitor_wrap.h] Bug #808: Ensure force_pwchange is correctly initialized
even if keyboard-interactive is not used by the client. Prevents segfaults
in some cases where the user's password is expired (note this is not
considered a security exposure). ok djm@
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r-- | monitor_wrap.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c index e7c15cecd..b1b1c3a61 100644 --- a/monitor_wrap.c +++ b/monitor_wrap.c | |||
@@ -686,7 +686,7 @@ mm_session_pty_cleanup2(Session *s) | |||
686 | 686 | ||
687 | #ifdef USE_PAM | 687 | #ifdef USE_PAM |
688 | void | 688 | void |
689 | mm_start_pam(char *user) | 689 | mm_start_pam(Authctxt *authctxt) |
690 | { | 690 | { |
691 | Buffer m; | 691 | Buffer m; |
692 | 692 | ||
@@ -695,8 +695,6 @@ mm_start_pam(char *user) | |||
695 | fatal("UsePAM=no, but ended up in %s anyway", __func__); | 695 | fatal("UsePAM=no, but ended up in %s anyway", __func__); |
696 | 696 | ||
697 | buffer_init(&m); | 697 | buffer_init(&m); |
698 | buffer_put_cstring(&m, user); | ||
699 | |||
700 | mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_START, &m); | 698 | mm_request_send(pmonitor->m_recvfd, MONITOR_REQ_PAM_START, &m); |
701 | 699 | ||
702 | buffer_free(&m); | 700 | buffer_free(&m); |