]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4/torture/fruit: ensure AFP_AfpInfo blobs are 0-initialized
authorRalph Boehme <slow@samba.org>
Wed, 6 Dec 2017 21:05:23 +0000 (22:05 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 25 Jan 2018 14:06:21 +0000 (15:06 +0100)
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)

source4/torture/vfs/fruit.c

index 76890ff75e01cfa92237897bb0f29b510fa5dabf..88e3de27059348892976932768b460a4e9682f0c 100644 (file)
@@ -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;
        }