From 384328e544b1847236a07df231e1b7b10e4cc6ce Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 24 Feb 2017 14:29:47 -0500 Subject: [PATCH] Fix checksumflags assignment in cksummer drr_checksumflags was incorrectly set to drr_checksumtype. Reviewed-by: Matt Ahrens Reviewed-by: Brian Behlendorf Reviewed-by: George Melikov Reviewed-by: Giuseppe Di Natale Signed-off-by: Tim Crawford Closes #5830 --- lib/libzfs/libzfs_sendrecv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libzfs/libzfs_sendrecv.c b/lib/libzfs/libzfs_sendrecv.c index e703fd254..709ca5997 100644 --- a/lib/libzfs/libzfs_sendrecv.c +++ b/lib/libzfs/libzfs_sendrecv.c @@ -426,7 +426,7 @@ cksummer(void *arg) wbr_drrr->drr_checksumtype = drrw->drr_checksumtype; wbr_drrr->drr_checksumflags = - drrw->drr_checksumtype; + drrw->drr_checksumflags; wbr_drrr->drr_key.ddk_cksum = drrw->drr_key.ddk_cksum; wbr_drrr->drr_key.ddk_prop =