summaryrefslogtreecommitdiffstats
path: root/auth-bsdauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-bsdauth.c')
-rw-r--r--auth-bsdauth.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-bsdauth.c b/auth-bsdauth.c
index f48b4317..2ccbc9d4 100644
--- a/auth-bsdauth.c
+++ b/auth-bsdauth.c
@@ -68,9 +68,8 @@ bsdauth_query(void *ctx, char **name, char **infotxt,
*name = xstrdup("");
*infotxt = xstrdup("");
*numprompts = 1;
- *prompts = xmalloc(*numprompts * sizeof(char *));
- *echo_on = xmalloc(*numprompts * sizeof(u_int));
- (*echo_on)[0] = 0;
+ *prompts = xcalloc(*numprompts, sizeof(char *));
+ *echo_on = xcalloc(*numprompts, sizeof(u_int));
(*prompts)[0] = xstrdup(challenge);
return 0;