diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-17 03:32:38 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:23 -0500 |
commit | fe996e8ac687dbf5b5cfdd795f14aed89663f06d (patch) | |
tree | 5de2f4028b50de4ab2e43868a7306d82f575a677 /source4/libcli/smb2/create.c | |
parent | 553361797f2960265c527b7830e9899edbc69cd3 (diff) | |
download | samba-fe996e8ac687dbf5b5cfdd795f14aed89663f06d.tar.gz samba-fe996e8ac687dbf5b5cfdd795f14aed89663f06d.tar.bz2 samba-fe996e8ac687dbf5b5cfdd795f14aed89663f06d.zip |
r11754: make the SMB2 blob push routines take offsets, so they fit better with
the rest of the packet construction code
(This used to be commit 387ec2b17ff30a1c040b460b498c8fa7d8770593)
Diffstat (limited to 'source4/libcli/smb2/create.c')
-rw-r--r-- | source4/libcli/smb2/create.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c index 79d3341bd0..47fd208643 100644 --- a/source4/libcli/smb2/create.c +++ b/source4/libcli/smb2/create.c @@ -48,13 +48,13 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create SIVAL(req->out.body, 0x24, io->in.open_disposition); SIVAL(req->out.body, 0x28, io->in.create_options); - status = smb2_push_o16s16_string(&req->out, req->out.body+0x2C, io->in.fname); + status = smb2_push_o16s16_string(&req->out, 0x2C, io->in.fname); if (!NT_STATUS_IS_OK(status)) { talloc_free(req); return NULL; } - status = smb2_push_o32s32_blob(&req->out, req->out.body+0x30, io->in.blob); + status = smb2_push_o32s32_blob(&req->out, 0x30, io->in.blob); if (!NT_STATUS_IS_OK(status)) { talloc_free(req); return NULL; |