summaryrefslogtreecommitdiff
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
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@.
-rw-r--r--ChangeLog7
-rw-r--r--monitor.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 900999d7a..fd2e2c064 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
120100919 120100903
2 - (dtucker) [monitor.c] Bug #1795: Initialize the values to be returned from
3 PAM to sane values in case the PAM method doesn't write to them. Spotted by
4 Bitman Zhou, ok djm@.
5
620100819
2 - (dtucker) [contrib/ssh-copy-ud.1] Bug #1786: update ssh-copy-id.1 with more 7 - (dtucker) [contrib/ssh-copy-ud.1] Bug #1786: update ssh-copy-id.1 with more
3 details about its behaviour WRT existing directories. Patch from 8 details about its behaviour WRT existing directories. Patch from
4 asguthrie at gmail com, ok djm. 9 asguthrie at gmail com, ok djm.
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__);