winbindd: remove unused single_domains array
authorRalph Boehme <slow@samba.org>
Tue, 4 Apr 2017 12:23:03 +0000 (14:23 +0200)
committerRalph Boehme <slow@samba.org>
Thu, 6 Apr 2017 18:08:19 +0000 (20:08 +0200)
This was added as part of 9be918116e356c358ef77cc2933e471090088293, but
is not needed anymore as the previous commit changed the logic.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11961

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/wb_lookupsids.c

index e690730b37d49214fc1a06d06ac3465517853032..c13bd5b8fb88b7ac5d581004efc95a106591830a 100644 (file)
@@ -72,8 +72,6 @@ struct wb_lookupsids_state {
         * wbint_LookupSid. Preallocated with num_sids.
         */
        uint32_t *single_sids;
         * wbint_LookupSid. Preallocated with num_sids.
         */
        uint32_t *single_sids;
-       /* Pointer into the "domains" array above*/
-       struct wb_lookupsids_domain **single_domains;
        uint32_t num_single_sids;
        uint32_t single_sids_done;
 
        uint32_t num_single_sids;
        uint32_t single_sids_done;
 
@@ -129,12 +127,6 @@ struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
        if (tevent_req_nomem(state->single_sids, req)) {
                return tevent_req_post(req, ev);
        }
        if (tevent_req_nomem(state->single_sids, req)) {
                return tevent_req_post(req, ev);
        }
-       state->single_domains = talloc_zero_array(state,
-                                                 struct wb_lookupsids_domain *,
-                                                 num_sids);
-       if (tevent_req_nomem(state->single_domains, req)) {
-               return tevent_req_post(req, ev);
-       }
 
        state->res_domains = talloc_zero(state, struct lsa_RefDomainList);
        if (tevent_req_nomem(state->res_domains, req)) {
 
        state->res_domains = talloc_zero(state, struct lsa_RefDomainList);
        if (tevent_req_nomem(state->res_domains, req)) {
@@ -496,7 +488,6 @@ static void wb_lookupsids_done(struct tevent_req *subreq)
 
                        state->single_sids[state->num_single_sids] =
                                res_sid_index;
 
                        state->single_sids[state->num_single_sids] =
                                res_sid_index;
-                       state->single_domains[state->num_single_sids] = d;
                        state->num_single_sids += 1;
                }
                state->domains_done += 1;
                        state->num_single_sids += 1;
                }
                state->domains_done += 1;