mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3/rpc_server/lsa: 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> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
4be7800801
commit
b82d436586
@ -406,9 +406,9 @@ static NTSTATUS create_lsa_policy_handle(TALLOC_CTX *mem_ctx,
|
|||||||
|
|
||||||
info->name = talloc_strdup(info, name);
|
info->name = talloc_strdup(info, name);
|
||||||
|
|
||||||
if (sd) {
|
if (sd != NULL) {
|
||||||
info->sd = dup_sec_desc(info, sd);
|
info->sd = security_descriptor_copy(info, sd);
|
||||||
if (!info->sd) {
|
if (info->sd == NULL) {
|
||||||
talloc_free(info);
|
talloc_free(info);
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user