mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-12 19:20:28 +03:00
zstreamdump needs to initialize fletcher 4 support
Otherwise, the checksum function pointer isn't initialized. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tim Chase <tim@chase2k.com> Closes #5411
This commit is contained in:
parent
8720e9e748
commit
616fa7c02b
@ -265,6 +265,7 @@ main(int argc, char *argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fletcher_4_init();
|
||||||
send_stream = stdin;
|
send_stream = stdin;
|
||||||
while (read_hdr(drr, &zc)) {
|
while (read_hdr(drr, &zc)) {
|
||||||
|
|
||||||
@ -618,6 +619,7 @@ main(int argc, char *argv[])
|
|||||||
pcksum = zc;
|
pcksum = zc;
|
||||||
}
|
}
|
||||||
free(buf);
|
free(buf);
|
||||||
|
fletcher_4_fini();
|
||||||
|
|
||||||
/* Print final summary */
|
/* Print final summary */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user