summaryrefslogtreecommitdiffstats
path: root/source/torture
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-25 02:17:05 +0000
committerJeremy Allison <jra@samba.org>2007-03-25 02:17:05 +0000
commitd7864cbea1b1c23079d411323fcc2ccb5b47115f (patch)
treebff1d5fe2023e708c2ceef57365b6ef86cbb2177 /source/torture
parent10ec9e4af7d474ec28a8333195dec5850bc82cf1 (diff)
downloadsamba-d7864cbea1b1c23079d411323fcc2ccb5b47115f.tar.gz
samba-d7864cbea1b1c23079d411323fcc2ccb5b47115f.tar.xz
samba-d7864cbea1b1c23079d411323fcc2ccb5b47115f.zip
r21963: Fix another uninitialized buffer used in test write - valgrind
fix. Jeremy.
Diffstat (limited to 'source/torture')
-rw-r--r--source/torture/torture.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/torture/torture.c b/source/torture/torture.c
index 054f1965c40..925cac3f32c 100644
--- a/source/torture/torture.c
+++ b/source/torture/torture.c
@@ -1051,6 +1051,8 @@ static BOOL run_tcon_test(int dummy)
char buf[4];
BOOL ret = True;
+ memset(buf, '\0', sizeof(buf));
+
if (!torture_open_connection(&cli, 0)) {
return False;
}