summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-10 14:10:13 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-10 17:12:10 +0100
commit21326d48d7f9dcb93f15124114ade9484c02055d (patch)
tree225a42d60eddf63127c8a90dd9879cc7738167e0 /source4
parent00ce349ad1be0b223a6c455667e894aac7869aba (diff)
downloadsamba-21326d48d7f9dcb93f15124114ade9484c02055d.tar.gz
samba-21326d48d7f9dcb93f15124114ade9484c02055d.tar.bz2
samba-21326d48d7f9dcb93f15124114ade9484c02055d.zip
s4:rpc_server/wkssvc: remove unneeded talloc_reference()
metze
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/wkssvc/dcesrv_wkssvc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
index 0122a3e71b..4358eb1732 100644
--- a/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
+++ b/source4/rpc_server/wkssvc/dcesrv_wkssvc.c
@@ -47,8 +47,7 @@ static WERROR dcesrv_wkssvc_NetWkstaGetInfo(struct dcesrv_call_state *dce_call,
info100->platform_id = dcesrv_common_get_platform_id(mem_ctx, dce_ctx);
info100->server_name = dcesrv_common_get_server_name(mem_ctx, dce_ctx, NULL);
W_ERROR_HAVE_NO_MEMORY(info100->server_name);
- info100->domain_name = talloc_reference(mem_ctx, server_info->domain_name);
- W_ERROR_HAVE_NO_MEMORY(info100->domain_name);
+ info100->domain_name = server_info->domain_name;
info100->version_major = server_info->version_major;
info100->version_minor = server_info->version_minor;
@@ -65,8 +64,7 @@ static WERROR dcesrv_wkssvc_NetWkstaGetInfo(struct dcesrv_call_state *dce_call,
info101->platform_id = dcesrv_common_get_platform_id(mem_ctx, dce_ctx);
info101->server_name = dcesrv_common_get_server_name(mem_ctx, dce_ctx, NULL);
W_ERROR_HAVE_NO_MEMORY(info101->server_name);
- info101->domain_name = talloc_reference(mem_ctx, server_info->domain_name);
- W_ERROR_HAVE_NO_MEMORY(info101->domain_name);
+ info101->domain_name = server_info->domain_name;
info101->version_major = server_info->version_major;
info101->version_minor = server_info->version_minor;
info101->lan_root = dcesrv_common_get_lan_root(mem_ctx, dce_ctx);