- allocate the dc info on the right structure
- zero the number of group members when allocating the winbindd_gr
return
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
DEBUG(5, ("cmd_getgrgid_recv_group_info called\n"));
- gr = talloc(state, struct winbindd_gr);
+ gr = talloc_zero(state, struct winbindd_gr);
if (composite_nomem(gr, state->ctx)) return;
group_info = talloc(state, struct libnet_GroupInfo);
struct get_dom_info_state *state = tevent_req_callback_data(req, struct get_dom_info_state);
struct finddcs finddcs_io;
- state->info->dc = talloc(state, struct nbt_dc_name);
+ state->info->dc = talloc(state->info, struct nbt_dc_name);
state->ctx->status = finddcs_cldap_recv(req, state->info, &finddcs_io);
if (!composite_is_ok(state->ctx)) return;