summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorWilco Baan Hofman <wilco@baanhofman.nl>2010-05-24 19:47:27 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-06-20 17:19:12 +0200
commite86ef688ee4c65fc5dd06910fd61222c195c1dc9 (patch)
tree89ec22563380e6734df8a9163182efb8b694ca32 /source4/lib
parent674d559f37a1e553be3e01ade04936ff9662baa3 (diff)
downloadsamba-e86ef688ee4c65fc5dd06910fd61222c195c1dc9.tar.gz
samba-e86ef688ee4c65fc5dd06910fd61222c195c1dc9.tar.bz2
samba-e86ef688ee4c65fc5dd06910fd61222c195c1dc9.zip
Change talloc_steal to strdup because function might not expect it.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/policy/gp_ldap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/policy/gp_ldap.c b/source4/lib/policy/gp_ldap.c
index 5c60e94dcb..0c307085cb 100644
--- a/source4/lib/policy/gp_ldap.c
+++ b/source4/lib/policy/gp_ldap.c
@@ -58,7 +58,7 @@ static NTSTATUS parse_gpo(TALLOC_CTX *mem_ctx, struct ldb_message *msg, struct g
enum ndr_err_code ndr_err;
const DATA_BLOB *data;
- gpo->dn = talloc_steal(mem_ctx, ldb_dn_get_linearized(msg->dn));
+ gpo->dn = talloc_strdup(mem_ctx, ldb_dn_get_linearized(msg->dn));
DEBUG(9, ("Parsing GPO LDAP data for %s\n", gpo->dn));
@@ -69,11 +69,11 @@ static NTSTATUS parse_gpo(TALLOC_CTX *mem_ctx, struct ldb_message *msg, struct g
gpo->file_sys_path = ldb_msg_find_attr_as_string(msg, "gPCFileSysPath", "");
if (gpo->display_name[0] != '\0')
- gpo->display_name = talloc_steal(mem_ctx, gpo->display_name);
+ gpo->display_name = talloc_strdup(mem_ctx, gpo->display_name);
if (gpo->name[0] != '\0')
- gpo->name = talloc_steal(mem_ctx, gpo->name);
+ gpo->name = talloc_strdup(mem_ctx, gpo->name);
if (gpo->file_sys_path[0] != '\0')
- gpo->file_sys_path = talloc_steal(mem_ctx, gpo->file_sys_path);
+ gpo->file_sys_path = talloc_strdup(mem_ctx, gpo->file_sys_path);
/* Pull the security descriptor through the NDR library */
data = ldb_msg_find_ldb_val(msg, "nTSecurityDescriptor");
@@ -857,7 +857,7 @@ NTSTATUS gp_create_ldap_gpo(struct gp_context *gp_ctx, struct gp_object *gpo)
return NT_STATUS_UNSUCCESSFUL;
}
- gpo->dn = talloc_steal(gpo, ldb_dn_get_linearized(gpo_dn));
+ gpo->dn = talloc_strdup(gpo, ldb_dn_get_linearized(gpo_dn));
talloc_free(mem_ctx);
return NT_STATUS_OK;