mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +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);
|
||||
|
||||
if (sd) {
|
||||
info->sd = dup_sec_desc(info, sd);
|
||||
if (!info->sd) {
|
||||
if (sd != NULL) {
|
||||
info->sd = security_descriptor_copy(info, sd);
|
||||
if (info->sd == NULL) {
|
||||
talloc_free(info);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user