summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2010-08-03 15:50:16 +1000
committerDarren Tucker <dtucker@zip.com.au>2010-08-03 15:50:16 +1000
commit8b7a055e9aac7c95d934e4ad8ba3991dfccfe586 (patch)
treee0092c8b45d80ce057a2ffd9096bc96c6bed68aa /monitor.c
parent12b29dbd8a439b7de6bd7c30bf9b03539ac2e105 (diff)
- (dtucker) [monitor.c] Bug #1795: Initialize the values to be returned from
PAM to sane values in case the PAM method doesn't write to them. Spotted by Bitman Zhou, ok djm@.
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 7acbeaa65..9eb4e35c9 100644
--- a/monitor.c
+++ b/monitor.c
@@ -922,8 +922,8 @@ mm_answer_pam_init_ctx(int sock, Buffer *m)
922int 922int
923mm_answer_pam_query(int sock, Buffer *m) 923mm_answer_pam_query(int sock, Buffer *m)
924{ 924{
925 char *name, *info, **prompts; 925 char *name = NULL, *info = NULL, **prompts = NULL;
926 u_int i, num, *echo_on; 926 u_int i, num = 0, *echo_on = 0;
927 int ret; 927 int ret;
928 928
929 debug3("%s", __func__); 929 debug3("%s", __func__);