winbindd: convert id to a pointer in wb_xids2sids_dom_done()
authorRalph Boehme <slow@samba.org>
Thu, 21 Feb 2019 17:39:46 +0000 (18:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Mar 2019 10:37:55 +0000 (10:37 +0000)
No change in behaviour.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit f8bf4fc608639695651f75c52b31f95e796a5a26)

source3/winbindd/wb_xids2sids.c

index aba83823c7bd36c2405b4c0084636604f72298db..ae7dbfd4ec2090ba6bf8b3db36cda17cc2c67550 100644 (file)
@@ -354,9 +354,9 @@ static void wb_xids2sids_dom_done(struct tevent_req *subreq)
        dom_sid_idx = 0;
 
        for (i=0; i<state->num_all_xids; i++) {
-               struct unixid id = state->all_xids[i];
+               struct unixid *id = &state->all_xids[i];
 
-               if ((id.id < dom_map->low_id) || (id.id > dom_map->high_id)) {
+               if ((id->id < dom_map->low_id) || (id->id > dom_map->high_id)) {
                        /* out of range */
                        continue;
                }