From 8b7a055e9aac7c95d934e4ad8ba3991dfccfe586 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 3 Aug 2010 15:50:16 +1000 Subject: - (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@. --- ChangeLog | 7 ++++++- monitor.c | 4 ++-- 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 @@ -20100919 +20100903 + - (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@. + +20100819 - (dtucker) [contrib/ssh-copy-ud.1] Bug #1786: update ssh-copy-id.1 with more details about its behaviour WRT existing directories. Patch from 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) int mm_answer_pam_query(int sock, Buffer *m) { - char *name, *info, **prompts; - u_int i, num, *echo_on; + char *name = NULL, *info = NULL, **prompts = NULL; + u_int i, num = 0, *echo_on = 0; int ret; debug3("%s", __func__); -- cgit v1.2.3