Skip to content

Commit

Permalink
mcookie: properly initialize hash
Browse files Browse the repository at this point in the history
This stupid mistake has been introduced by commit 46ae163.

Signed-off-by: Karel Zak <[email protected]>
  • Loading branch information
karelzak committed Dec 12, 2017
1 parent 42dea85 commit 856d856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc-utils/mcookie.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ int main(int argc, char **argv)
if (ctl.maxsz && ctl.nfiles == 0)
warnx(_("--max-size ignored when used without --file"));

ul_MD5Init(&ctl.ctx);
randomness_from_files(&ctl);
free(ctl.files);

Expand Down

0 comments on commit 856d856

Please sign in to comment.