summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-07-25 11:40:54 +0200
committerStefan Metzmacher <metze@samba.org>2012-07-25 12:15:05 +0200
commit4d6d783afeb64da85f89117324e43e4171df0d02 (patch)
treef5853c1799eabb60929b17bc24eb59236e139682 /source4/torture
parentbb6761c127456d56d7d39fffe26ada2e56b0b3ed (diff)
downloadsamba-4d6d783afeb64da85f89117324e43e4171df0d02.tar.gz
samba-4d6d783afeb64da85f89117324e43e4171df0d02.tar.bz2
samba-4d6d783afeb64da85f89117324e43e4171df0d02.zip
s4:libcli/smb2: remove unused smb2_session->pid
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/lock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c
index 3691830ce4..9350c136a2 100644
--- a/source4/torture/smb2/lock.c
+++ b/source4/torture/smb2/lock.c
@@ -1250,7 +1250,6 @@ static bool test_errorcode(struct torture_context *torture,
CHECK_STATUS(status, NT_STATUS_LOCK_NOT_GRANTED);
/* Demonstrate that the smbpid doesn't matter */
- tree->session->pid++;
lck.in.file.handle = h;
status = smb2_lock(tree, &lck);
CHECK_STATUS(status, NT_STATUS_LOCK_NOT_GRANTED);
@@ -1258,7 +1257,6 @@ static bool test_errorcode(struct torture_context *torture,
lck.in.file.handle = h2;
status = smb2_lock(tree, &lck);
CHECK_STATUS(status, NT_STATUS_LOCK_NOT_GRANTED);
- tree->session->pid--;
/* Demonstrate that a 0-byte lock inside the locked range still
* gives the same error. */
@@ -2443,12 +2441,10 @@ static bool test_context(struct torture_context *torture,
status = smb2_lock(tree, &lck);
CHECK_STATUS(status, NT_STATUS_OK);
- tree->session->pid++;
el[0].flags = SMB2_LOCK_FLAG_UNLOCK;
status = smb2_lock(tree, &lck);
CHECK_STATUS(status, NT_STATUS_OK);
- tree->session->pid--;
el[0].flags = SMB2_LOCK_FLAG_UNLOCK;
status = smb2_lock(tree, &lck);
CHECK_STATUS(status, NT_STATUS_RANGE_NOT_LOCKED);