summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-23 13:15:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:49 -0500
commita626e5a274e94caa0d906a07dd25ada928e8a528 (patch)
tree4622cda8a7e5e0b595c5197d0b8cccd05fbc9529 /source4/torture
parent041b0cfa971480720ad4b35623f46d857346e16b (diff)
downloadsamba-a626e5a274e94caa0d906a07dd25ada928e8a528.tar.gz
samba-a626e5a274e94caa0d906a07dd25ada928e8a528.tar.bz2
samba-a626e5a274e94caa0d906a07dd25ada928e8a528.zip
r21519: when we want to send non initialized data, then
generate a random buffer explicit to make valgrind happy found by valgrind in the build-farm on fort, there are some more places like this... metze (This used to be commit 2654f595cae046924be33a3f8f758a20565156ee)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/basic/misc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/torture/basic/misc.c b/source4/torture/basic/misc.c
index 13dcf5da93..9467d2fc3c 100644
--- a/source4/torture/basic/misc.c
+++ b/source4/torture/basic/misc.c
@@ -66,6 +66,7 @@ static BOOL rw_torture(struct torture_context *tctx, struct smbcli_state *c)
return False;
}
+ generate_random_buffer(buf, sizeof(buf));
for (i=0;i<torture_numops;i++) {
uint_t n = (uint_t)random()%10;