From: Andrew Tridgell Date: Thu, 26 Nov 2009 06:03:20 +0000 (+1100) Subject: torture: fixed SMB2-LOCK valgrind error X-Git-Tag: samba-4.0.0alpha9~133 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=056473d58836ef3818e816f2d649ea35e7550264;p=samba.git torture: fixed SMB2-LOCK valgrind error --- diff --git a/source4/torture/smb2/lock.c b/source4/torture/smb2/lock.c index 6bba7bd0e47..beff052a893 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;