]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mcookie: properly initialize hash
authorKarel Zak <kzak@redhat.com>
Tue, 12 Dec 2017 11:09:13 +0000 (12:09 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 12 Dec 2017 11:09:13 +0000 (12:09 +0100)
This stupid mistake has been introduced by commit 46ae163a8e5dc8457f8e2828eb53db8e610af275.

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/mcookie.c

index fd4227a098f7d5608b111ebbb9ef02e29b45270f..8598ac3452dffedd398f21d2b6f687fff94ded21 100644 (file)
@@ -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);