summaryrefslogtreecommitdiff
path: root/ssh-rand-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-rand-helper.c')
-rw-r--r--ssh-rand-helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index 662f70080..3a4a165fa 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -674,8 +674,7 @@ prng_read_commands(char *cmdfilename)
674 } 674 }
675 675
676 num_cmds = 64; 676 num_cmds = 64;
677 entcmd = xmalloc(num_cmds * sizeof(entropy_cmd_t)); 677 entcmd = xcalloc(num_cmds, sizeof(entropy_cmd_t));
678 memset(entcmd, '\0', num_cmds * sizeof(entropy_cmd_t));
679 678
680 /* Read in file */ 679 /* Read in file */
681 cur_cmd = linenum = 0; 680 cur_cmd = linenum = 0;