summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorTim Chase <[email protected]>2016-11-29 15:47:05 -0600
committerBrian Behlendorf <[email protected]>2016-11-29 14:47:05 -0700
commit616fa7c02b0cc373f011998f56ed53bb37742d13 (patch)
tree7f6a2ff729502e99313cc3e0bc96a836d2d8d739 /cmd
parent8720e9e7482fa2dce4f34c56d3c7451833413d7d (diff)
zstreamdump needs to initialize fletcher 4 support
Otherwise, the checksum function pointer isn't initialized. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Tim Chase <[email protected]> Closes #5411
Diffstat (limited to 'cmd')
-rw-r--r--cmd/zstreamdump/zstreamdump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/zstreamdump/zstreamdump.c b/cmd/zstreamdump/zstreamdump.c
index e0bc34542..aa594b8b3 100644
--- a/cmd/zstreamdump/zstreamdump.c
+++ b/cmd/zstreamdump/zstreamdump.c
@@ -265,6 +265,7 @@ main(int argc, char *argv[])
exit(1);
}
+ fletcher_4_init();
send_stream = stdin;
while (read_hdr(drr, &zc)) {
@@ -618,6 +619,7 @@ main(int argc, char *argv[])
pcksum = zc;
}
free(buf);
+ fletcher_4_fini();
/* Print final summary */