diff options
author | Jeremy Allison <jra@samba.org> | 2007-03-23 19:12:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:51 -0500 |
commit | 16a029f7f34f9bb4f0ee71961ad3064e210db8e1 (patch) | |
tree | 7845ce2b04e7929fadb6b352eba1c1287ec61a3c /source3 | |
parent | b3646bd809fc7688145d3e4a7b90fb8a64979a48 (diff) | |
download | samba-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')
-rw-r--r-- | source3/torture/torture.c | 2 |
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) |