summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_join.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-15 12:06:12 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-31 14:42:03 +0200
commitff37d6631c40a61e596ce93a6803c65e1efe98c1 (patch)
tree10c824a95fdd025c825857bdf7be53342fbaff5f /source4/libnet/libnet_join.c
parent066e81f55777a1f8788be0c2c6077997c322baa3 (diff)
downloadsamba-ff37d6631c40a61e596ce93a6803c65e1efe98c1.tar.gz
s4:libnet: use talloc_strdup() instead of talloc_reference()
metze
Diffstat (limited to 'source4/libnet/libnet_join.c')
-rw-r--r--source4/libnet/libnet_join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index d7b80abc55a..6f32a6ec370 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -1147,7 +1147,7 @@ static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,
if (r->in.netbios_name != NULL) {
netbios_name = r->in.netbios_name;
} else {
- netbios_name = talloc_reference(tmp_mem, lp_netbios_name(ctx->lp_ctx));
+ netbios_name = talloc_strdup(tmp_mem, lp_netbios_name(ctx->lp_ctx));
if (!netbios_name) {
r->out.error_string = NULL;
talloc_free(tmp_mem);