summaryrefslogtreecommitdiff
path: root/source4/rpc_server
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-20 16:00:52 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-20 16:02:14 +0200
commit135208d99067a7c84920ef7ce85955021f7be997 (patch)
treeb85370a2a2eba47c5c19d364f5ef16823a5620e4 /source4/rpc_server
parentb4b43fcb4c3e8b046489ea03b70f7c0a77bc5065 (diff)
downloadsamba-135208d99067a7c84920ef7ce85955021f7be997.tar.gz
samba-135208d99067a7c84920ef7ce85955021f7be997.tar.bz2
samba-135208d99067a7c84920ef7ce85955021f7be997.zip
s4:rpc_server/netlogon: add no memory checks
metze
Diffstat (limited to 'source4/rpc_server')
-rw-r--r--source4/rpc_server/netlogon/dcerpc_netlogon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/netlogon/dcerpc_netlogon.c b/source4/rpc_server/netlogon/dcerpc_netlogon.c
index d7aa4252d2..66af44e9b8 100644
--- a/source4/rpc_server/netlogon/dcerpc_netlogon.c
+++ b/source4/rpc_server/netlogon/dcerpc_netlogon.c
@@ -1523,10 +1523,11 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call,
W_ERROR_HAVE_NO_MEMORY(info);
info->dc_unc = talloc_asprintf(mem_ctx, "\\\\%s",
response.data.nt5_ex.pdc_dns_name);
+ W_ERROR_HAVE_NO_MEMORY(info->dc_unc);
info->dc_address = talloc_asprintf(mem_ctx, "\\\\%s",
response.data.nt5_ex.sockaddr.pdc_ip);
- info->dc_address_type = DS_ADDRESS_TYPE_INET;
W_ERROR_HAVE_NO_MEMORY(info->dc_address);
+ info->dc_address_type = DS_ADDRESS_TYPE_INET; /* TODO: make this dynamic? for ipv6 */
info->domain_guid = response.data.nt5_ex.domain_uuid;
info->domain_name = response.data.nt5_ex.dns_domain;
info->forest_name = response.data.nt5_ex.forest;