summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 0d7a0e3bd..23857639b 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -72,6 +72,7 @@ extern struct monitor *pmonitor;
72extern Buffer input, output; 72extern Buffer input, output;
73extern Buffer loginmsg; 73extern Buffer loginmsg;
74extern ServerOptions options; 74extern ServerOptions options;
75extern Buffer loginmsg;
75 76
76int 77int
77mm_is_monitor(void) 78mm_is_monitor(void)
@@ -716,6 +717,7 @@ mm_do_pam_account(void)
716{ 717{
717 Buffer m; 718 Buffer m;
718 u_int ret; 719 u_int ret;
720 char *msg;
719 721
720 debug3("%s entering", __func__); 722 debug3("%s entering", __func__);
721 if (!options.use_pam) 723 if (!options.use_pam)
@@ -727,6 +729,9 @@ mm_do_pam_account(void)
727 mm_request_receive_expect(pmonitor->m_recvfd, 729 mm_request_receive_expect(pmonitor->m_recvfd,
728 MONITOR_ANS_PAM_ACCOUNT, &m); 730 MONITOR_ANS_PAM_ACCOUNT, &m);
729 ret = buffer_get_int(&m); 731 ret = buffer_get_int(&m);
732 msg = buffer_get_string(&m, NULL);
733 buffer_append(&loginmsg, msg, strlen(msg));
734 xfree(msg);
730 735
731 buffer_free(&m); 736 buffer_free(&m);
732 737