1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s3:utils: Add missing NULL check in rpc_fetch_domain_aliases()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Feb 13 00:52:25 CET 2019 on sn-devel-144
This commit is contained in:
Andreas Schneider 2019-02-04 17:23:05 +01:00 committed by Jeremy Allison
parent 77dbe6b9ef
commit f8a85ed569

View File

@ -4669,6 +4669,10 @@ static NTSTATUS rpc_fetch_domain_aliases(struct rpc_pipe_client *pipe_hnd,
if (alias.num_members > 0) {
alias.members = SMB_MALLOC_ARRAY(struct dom_sid, alias.num_members);
if (alias.members == NULL) {
status = NT_STATUS_NO_MEMORY;
goto done;
}
for (j = 0; j < alias.num_members; j++)
sid_copy(&alias.members[j],