From: Ralph Boehme Date: Wed, 6 Dec 2017 21:05:23 +0000 (+0100) Subject: s4/torture/fruit: ensure AFP_AfpInfo blobs are 0-initialized X-Git-Tag: samba-4.6.13~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26da45be00c614b553125949b75d1bc4f27b6d6b;p=thirdparty%2Fsamba.git 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) --- 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; }