summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/lock.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-11-26 17:03:20 +1100
committerAndrew Tridgell <tridge@samba.org>2009-11-27 16:05:05 +1100
commit056473d58836ef3818e816f2d649ea35e7550264 (patch)
tree6b32b6600204a1caf843a61ee229a51b8afac12e /source4/torture/smb2/lock.c
parent04f235a9ebf45422c6ec2a971268c2c38dc081ad (diff)
downloadsamba-056473d58836ef3818e816f2d649ea35e7550264.tar.gz
samba-056473d58836ef3818e816f2d649ea35e7550264.tar.bz2
samba-056473d58836ef3818e816f2d649ea35e7550264.zip
torture: fixed SMB2-LOCK valgrind error
Diffstat (limited to 'source4/torture/smb2/lock.c')
-rw-r--r--source4/torture/smb2/lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c
index 6bba7bd0e4..beff052a89 100644
--- a/source4/torture/smb2/lock.c
+++ b/source4/torture/smb2/lock.c
@@ -530,7 +530,7 @@ static bool test_lock_auto_unlock(struct torture_context *torture,
struct smb2_handle h;
uint8_t buf[200];
struct smb2_lock lck;
- struct smb2_lock_element el[2];
+ struct smb2_lock_element el[1];
ZERO_STRUCT(buf);
@@ -541,6 +541,7 @@ static bool test_lock_auto_unlock(struct torture_context *torture,
CHECK_STATUS(status, NT_STATUS_OK);
ZERO_STRUCT(lck);
+ ZERO_STRUCT(el[0]);
lck.in.locks = el;
lck.in.lock_count = 0x0001;
lck.in.file.handle = h;