diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-16 21:17:54 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-16 21:58:58 +1000 |
commit | 43d54406b19a8041633eb26d7a809e3fd7de3ef6 (patch) | |
tree | 69872cc8a88660b31a0e9b69450f1b3eaf95b927 /source4/winbind/wb_dom_info.c | |
parent | b04b8b5610f23cd50c9a7a00eeca81229acd36d5 (diff) | |
download | samba-43d54406b19a8041633eb26d7a809e3fd7de3ef6.tar.gz samba-43d54406b19a8041633eb26d7a809e3fd7de3ef6.tar.bz2 samba-43d54406b19a8041633eb26d7a809e3fd7de3ef6.zip |
s4-winbind: fixed two valgrind errors
- 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>
Diffstat (limited to 'source4/winbind/wb_dom_info.c')
-rw-r--r-- | source4/winbind/wb_dom_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/winbind/wb_dom_info.c b/source4/winbind/wb_dom_info.c index d2ce8a9f0a..c0d708ca91 100644 --- a/source4/winbind/wb_dom_info.c +++ b/source4/winbind/wb_dom_info.c @@ -96,7 +96,7 @@ static void get_dom_info_recv_addrs(struct tevent_req *req) 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; |