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)
committerRalph Boehme <slow@samba.org>
Tue, 9 Jan 2018 11:53:32 +0000 (12:53 +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>
source4/torture/vfs/fruit.c

index 476e9204ca7009e78e7c1bc8b257428a6b76c3cd..7c1692c00ab6ef939014702e591f15b900c7e159 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;
        }