From b82d43658654fcfb65111b425f563b7a57ca91af Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 26 May 2014 15:48:34 +0200 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/rpc_server/lsa/srv_lsa_nt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index f4dc4afd57f..68a2a2c9234 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -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; }