mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
libgpo: replace dup_sec_desc() usage
Use security_descriptor_copy() instead, which is also provided by libcli. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b82d436586
commit
b7caabdb9e
@ -773,7 +773,13 @@ NTSTATUS gpo_copy(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
}
|
||||
|
||||
gpo->security_descriptor = dup_sec_desc(gpo, gpo_src->security_descriptor);
|
||||
if (gpo_src->security_descriptor == NULL) {
|
||||
/* existing SD assumed */
|
||||
TALLOC_FREE(gpo);
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
gpo->security_descriptor = security_descriptor_copy(gpo,
|
||||
gpo_src->security_descriptor);
|
||||
if (gpo->security_descriptor == NULL) {
|
||||
TALLOC_FREE(gpo);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user