mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFV r302654:
6879 incorrect endianness swap for drr_spill.drr_length in libzfs_sendrecv.c illumos/illumos-gate@20fea7a474 https://github.com/illumos/illumos-gate/commit/20fea7a47472aceb64d3ed48cc2a3ea26 8bc4795 https://www.illumos.org/issues/6879 In libzfs_sendrecv, there's a typo: case DRR_SPILL: if (byteswap) { drr->drr_u.drr_write.drr_length = BSWAP_64(drr->drr_u.drr_spill.drr_length); } Instead of drr_write.drr_length, we should be assigning the result of the byteswap to drr_spill.drr_length. Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <pcd@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com> Author: Dan Kimmel <dan.kimmel@delphix.com>
This commit is contained in:
commit
e736489e04
1 changed files with 1 additions and 1 deletions
|
|
@ -2967,7 +2967,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue