diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-02-23 13:15:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:48:49 -0500 |
commit | a626e5a274e94caa0d906a07dd25ada928e8a528 (patch) | |
tree | 4622cda8a7e5e0b595c5197d0b8cccd05fbc9529 /source4/torture | |
parent | 041b0cfa971480720ad4b35623f46d857346e16b (diff) | |
download | samba-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.c | 1 |
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; |