diff options
author | Darren Tucker <dtucker@zip.com.au> | 2010-08-03 15:50:16 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2010-08-03 15:50:16 +1000 |
commit | 8b7a055e9aac7c95d934e4ad8ba3991dfccfe586 (patch) | |
tree | e0092c8b45d80ce057a2ffd9096bc96c6bed68aa /monitor.c | |
parent | 12b29dbd8a439b7de6bd7c30bf9b03539ac2e105 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -922,8 +922,8 @@ mm_answer_pam_init_ctx(int sock, Buffer *m) | |||
922 | int | 922 | int |
923 | mm_answer_pam_query(int sock, Buffer *m) | 923 | mm_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__); |