From 21326d48d7f9dcb93f15124114ade9484c02055d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 10 Mar 2010 14:10:13 +0100 Subject: s4:rpc_server/wkssvc: remove unneeded talloc_reference() metze --- source4/rpc_server/wkssvc/dcesrv_wkssvc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/rpc_server') 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); -- cgit