mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +03:00
libcli/security: sddl: check a talloc_zero
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
5319c5bdac
commit
cc11165ecb
@ -827,7 +827,9 @@ struct security_descriptor *sddl_decode(TALLOC_CTX *mem_ctx, const char *sddl,
|
||||
};
|
||||
struct security_descriptor *sd;
|
||||
sd = talloc_zero(mem_ctx, struct security_descriptor);
|
||||
|
||||
if (sd == NULL) {
|
||||
goto failed;
|
||||
}
|
||||
sd->revision = SECURITY_DESCRIPTOR_REVISION_1;
|
||||
sd->type = SEC_DESC_SELF_RELATIVE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user