Skip to content

Commit 9f8026c

Browse files
rtvdbehlendorf
authored andcommitted
OpenZFS 6879 - Incorrect endianness swap
Authored by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Ported-by: Denys Rtveliashvili <denys@rtveliashvili.name> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Incorrect endianness swap for drr_spill.drr_length in libzfs_sendrecv.c Instead of drr_write.drr_length, we should be assigning the result of the byteswap to drr_spill.drr_length. OpenZFS-issue: https ://www.illumos.org/issues/6879 OpenZFS-commit: https ://github.com/openzfs/openzfs/commit/74c8720 Closes #4613
1 parent 33cf67c commit 9f8026c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/libzfs/libzfs_sendrecv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2619,7 +2619,7 @@ recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap)
26192619
break;
26202620
case DRR_SPILL:
26212621
if (byteswap) {
2622-
drr->drr_u.drr_write.drr_length =
2622+
drr->drr_u.drr_spill.drr_length =
26232623
BSWAP_64(drr->drr_u.drr_spill.drr_length);
26242624
}
26252625
(void) recv_read(hdl, fd, buf,

0 commit comments

Comments
 (0)