Skip to content

Commit

Permalink
6879 incorrect endianness swap for drr_spill.drr_length in libzfs_sen…
Browse files Browse the repository at this point in the history
…drecv.c

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <pcd@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
  • Loading branch information
dankimmel authored and ahrens committed Apr 20, 2016
1 parent c5d1600 commit 20fea7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/lib/libzfs/common/libzfs_sendrecv.c
Original file line number Diff line number Diff line change
Expand Up @@ -2825,7 +2825,7 @@ recv_skip(libzfs_handle_t *hdl, int fd, boolean_t byteswap)
break;
case DRR_SPILL:
if (byteswap) {
drr->drr_u.drr_write.drr_length =
drr->drr_u.drr_spill.drr_length =
BSWAP_64(drr->drr_u.drr_spill.drr_length);
}
(void) recv_read(hdl, fd, buf,
Expand Down

0 comments on commit 20fea7a

Please sign in to comment.