summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-12-06 22:05:23 +0100
committerKarolin Seeger <kseeger@samba.org>2018-01-25 15:06:21 +0100
commit26da45be00c614b553125949b75d1bc4f27b6d6b (patch)
tree758c2ef29b6083a11115072c0fe469800b799a22 /source4
parent21d0446c4811f2f066b549232ddd27b353a8c633 (diff)
downloadsamba-26da45be00c614b553125949b75d1bc4f27b6d6b.tar.gz
s4/torture/fruit: ensure AFP_AfpInfo blobs are 0-initialized
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13181 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit a22833c2971dc7234b32741305f40ed62e232e0b)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/vfs/fruit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/vfs/fruit.c b/source4/torture/vfs/fruit.c
index 76890ff75e0..88e3de27059 100644
--- a/source4/torture/vfs/fruit.c
+++ b/source4/torture/vfs/fruit.c
@@ -909,7 +909,7 @@ static char *torture_afpinfo_pack(TALLOC_CTX *mem_ctx,
{
char *buf;
- buf = talloc_array(mem_ctx, char, AFP_INFO_SIZE);
+ buf = talloc_zero_array(mem_ctx, char, AFP_INFO_SIZE);
if (buf == NULL) {
return NULL;
}