summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorSteven Danneman <steven.danneman@isilon.com>2009-11-18 17:51:35 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-11-25 12:55:48 -0800
commit7f14388721fdfdc4d5e3d36dd5071a0993695815 (patch)
tree90835e7c56a2afa97498c12384823bfdef649c29 /source4/libcli
parent65a611ec7299ba992d16dff69da47b1b8e16241d (diff)
downloadsamba-7f14388721fdfdc4d5e3d36dd5071a0993695815.tar.gz
samba-7f14388721fdfdc4d5e3d36dd5071a0993695815.tar.bz2
samba-7f14388721fdfdc4d5e3d36dd5071a0993695815.zip
s4/libcli: rename previously reserved field in SMB2 LOCK struct
The lock.in.reserved field has been renamed lock_sequence in the SMB 2.1 dialect. See MS-SMB 2.2.26.
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/interfaces.h2
-rw-r--r--source4/libcli/smb2/lock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index af2158cc16..4ddfc56c2f 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -2030,7 +2030,7 @@ union smb_lock {
/* static body buffer 48 (0x30) bytes */
/* uint16_t buffer_code; 0x30 */
uint16_t lock_count;
- uint32_t reserved;
+ uint32_t lock_sequence;
/* struct smb2_handle handle; */
struct smb2_lock_element {
uint64_t offset;
diff --git a/source4/libcli/smb2/lock.c b/source4/libcli/smb2/lock.c
index 62c6e5dba7..f2a76d876a 100644
--- a/source4/libcli/smb2/lock.c
+++ b/source4/libcli/smb2/lock.c
@@ -39,7 +39,7 @@ struct smb2_request *smb2_lock_send(struct smb2_tree *tree, struct smb2_lock *io
SSVAL(req->out.body, 0, 0x30);
SSVAL(req->out.body, 0x02, io->in.lock_count);
- SIVAL(req->out.body, 0x04, io->in.reserved);
+ SIVAL(req->out.body, 0x04, io->in.lock_sequence);
smb2_push_handle(req->out.body+0x08, &io->in.file.handle);
for (i=0;i<io->in.lock_count;i++) {