From a674a3bbf3520cd8f93f35dcc8a4ec59c456e1ba Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 28 Oct 2008 01:23:04 +0100 Subject: s4-netlogon: merge netr_GetAnyDCName from s3 idl (untested). Guenther --- source4/winbind/wb_dom_info_trusted.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/winbind/wb_dom_info_trusted.c') diff --git a/source4/winbind/wb_dom_info_trusted.c b/source4/winbind/wb_dom_info_trusted.c index 46d3bf37f6..c3be5adb1f 100644 --- a/source4/winbind/wb_dom_info_trusted.c +++ b/source4/winbind/wb_dom_info_trusted.c @@ -161,6 +161,7 @@ static void trusted_dom_info_recv_dsr(struct rpc_request *req) state, "\\\\%s", dcerpc_server_name(state->my_domain->netlogon_pipe)); state->g.in.domainname = state->info->name; + state->g.out.dcname = talloc(state, const char *); req = dcerpc_netr_GetAnyDCName_send(state->my_domain->netlogon_pipe, state, &state->g); @@ -187,7 +188,7 @@ static void trusted_dom_info_recv_dcname(struct rpc_request *req) state->info->num_dcs = 1; state->info->dcs = talloc(state->info, struct nbt_dc_name); state->info->dcs[0].name = talloc_steal(state->info, - state->g.out.dcname); + *(state->g.out.dcname)); if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++; if (*state->info->dcs[0].name == '\\') state->info->dcs[0].name++; -- cgit