mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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>
This commit is contained in:
parent
7901f7c3ba
commit
a22833c297
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user