diff options
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r-- | auth-bsdauth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c index f48b43174..2ccbc9d43 100644 --- a/auth-bsdauth.c +++ b/auth-bsdauth.c | |||
@@ -68,9 +68,8 @@ bsdauth_query(void *ctx, char **name, char **infotxt, | |||
68 | *name = xstrdup(""); | 68 | *name = xstrdup(""); |
69 | *infotxt = xstrdup(""); | 69 | *infotxt = xstrdup(""); |
70 | *numprompts = 1; | 70 | *numprompts = 1; |
71 | *prompts = xmalloc(*numprompts * sizeof(char *)); | 71 | *prompts = xcalloc(*numprompts, sizeof(char *)); |
72 | *echo_on = xmalloc(*numprompts * sizeof(u_int)); | 72 | *echo_on = xcalloc(*numprompts, sizeof(u_int)); |
73 | (*echo_on)[0] = 0; | ||
74 | (*prompts)[0] = xstrdup(challenge); | 73 | (*prompts)[0] = xstrdup(challenge); |
75 | 74 | ||
76 | return 0; | 75 | return 0; |