1
0
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:
David Disseldorp 2014-05-26 15:48:34 +02:00 committed by Jeremy Allison
parent 4be7800801
commit b82d436586

View File

@ -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;
}