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__);