Skip to content

Commit

Permalink
Merge pull request #374 from amosavian/fix-write-position
Browse files Browse the repository at this point in the history
Fix pwrite offset encoding
  • Loading branch information
sahlberg authored Oct 6, 2024
2 parents 59b4656 + 1d85526 commit 82e518b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/smb2-cmd-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ smb2_encode_write_request(struct smb2_context *smb2,
smb2_set_uint16(iov, 0, SMB2_WRITE_REQUEST_SIZE);
smb2_set_uint16(iov, 2, SMB2_HEADER_SIZE + 48);
smb2_set_uint32(iov, 4, req->length);
smb2_set_uint64(iov, 8, req->offset);
memcpy(iov->buf + 16, req->file_id, SMB2_FD_SIZE);
smb2_set_uint32(iov, 32, req->channel);
smb2_set_uint32(iov, 36, req->remaining_bytes);
Expand Down

0 comments on commit 82e518b

Please sign in to comment.