]> granicus.if.org Git - zfs/commitdiff
zstreamdump needs to initialize fletcher 4 support
authorTim Chase <tim@chase2k.com>
Tue, 29 Nov 2016 21:47:05 +0000 (15:47 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Nov 2016 21:47:05 +0000 (14:47 -0700)
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

cmd/zstreamdump/zstreamdump.c

index e0bc34542b77e848d6b89aac20eff1e889116877..aa594b8b37420f36af36d0bf1ed3084f59d0b8e6 100644 (file)
@@ -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 */