From 26da45be00c614b553125949b75d1bc4f27b6d6b Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 6 Dec 2017 22:05:23 +0100 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison (cherry picked from commit a22833c2971dc7234b32741305f40ed62e232e0b) --- source4/torture/vfs/fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2