summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-23 19:12:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:51 -0500
commit16a029f7f34f9bb4f0ee71961ad3064e210db8e1 (patch)
tree7845ce2b04e7929fadb6b352eba1c1287ec61a3c /source3/torture
parentb3646bd809fc7688145d3e4a7b90fb8a64979a48 (diff)
downloadsamba-16a029f7f34f9bb4f0ee71961ad3064e210db8e1.tar.gz
samba-16a029f7f34f9bb4f0ee71961ad3064e210db8e1.tar.bz2
samba-16a029f7f34f9bb4f0ee71961ad3064e210db8e1.zip
r21948: Fix valgrind error in build farm samba3 smbtorture. We were
using an uninitialized buffer for read/write tests. Jeremy. (This used to be commit e27d094620178f316bf79540164bbfe6ff3a3851)
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 5ab28438f2..054f1965c4 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -369,6 +369,8 @@ static BOOL rw_torture(struct cli_state *c)
char buf[1024];
BOOL correct = True;
+ memset(buf, '\0', sizeof(buf));
+
fnum2 = cli_open(c, lockfname, O_RDWR | O_CREAT | O_EXCL,
DENY_NONE);
if (fnum2 == -1)