summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/smb2/write.c')
-rw-r--r--source4/libcli/smb2/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb2/write.c b/source4/libcli/smb2/write.c
index 0b28b820ec..591cf2c891 100644
--- a/source4/libcli/smb2/write.c
+++ b/source4/libcli/smb2/write.c
@@ -36,7 +36,7 @@ struct smb2_request *smb2_write_send(struct smb2_tree *tree, struct smb2_write *
req = smb2_request_init_tree(tree, SMB2_OP_WRITE, 0x30, io->in.data.length);
if (req == NULL) return NULL;
- status = smb2_push_o16s32_blob(&req->out, req->out.body+0x02, io->in.data);
+ status = smb2_push_o16s32_blob(&req->out, 0x02, io->in.data);
if (!NT_STATUS_IS_OK(status)) {
talloc_free(req);
return NULL;