summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_rpc.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_rpc.c
parent066e81f55777a1f8788be0c2c6077997c322baa3 (diff)
downloadsamba-ff37d6631c40a61e596ce93a6803c65e1efe98c1.tar.gz
samba-ff37d6631c40a61e596ce93a6803c65e1efe98c1.tar.bz2
samba-ff37d6631c40a61e596ce93a6803c65e1efe98c1.zip
s4:libnet: use talloc_strdup() instead of talloc_reference()
metze
Diffstat (limited to 'source4/libnet/libnet_rpc.c')
-rw-r--r--source4/libnet/libnet_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet_rpc.c b/source4/libnet/libnet_rpc.c
index 4524448928..1c3c5916d4 100644
--- a/source4/libnet/libnet_rpc.c
+++ b/source4/libnet/libnet_rpc.c
@@ -113,7 +113,7 @@ static struct composite_context* libnet_RpcConnectSrv_send(struct libnet_context
}
if (r->level == LIBNET_RPC_CONNECT_SERVER_ADDRESS) {
- b->target_hostname = talloc_reference(b, r->in.name);
+ b->target_hostname = talloc_strdup(b, r->in.name);
if (composite_nomem(b->target_hostname, c)) {
return c;
}