summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index ef613cd3c..24ad0b794 100644
--- a/monitor.c
+++ b/monitor.c
@@ -834,9 +834,7 @@ mm_answer_pam_account(int sock, Buffer *m)
834 ret = do_pam_account(); 834 ret = do_pam_account();
835 835
836 buffer_put_int(m, ret); 836 buffer_put_int(m, ret);
837 buffer_append(&loginmsg, "\0", 1); 837 buffer_put_string(m, buffer_ptr(&loginmsg), buffer_len(&loginmsg));
838 buffer_put_cstring(m, buffer_ptr(&loginmsg));
839 buffer_clear(&loginmsg);
840 838
841 mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m); 839 mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m);
842 840