diff options
-rw-r--r-- | source4/winbind/wb_cmd_getgrgid.c | 2 | ||||
-rw-r--r-- | source4/winbind/wb_dom_info.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/winbind/wb_cmd_getgrgid.c b/source4/winbind/wb_cmd_getgrgid.c index 93e01c8cf4..fe946ed257 100644 --- a/source4/winbind/wb_cmd_getgrgid.c +++ b/source4/winbind/wb_cmd_getgrgid.c @@ -130,7 +130,7 @@ static void cmd_getgrgid_recv_group_info(struct composite_context *ctx) 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); 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; |