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)
committerVolker Lendecke <vl@samba.org>
Sat, 23 Feb 2019 06:54:09 +0000 (07:54 +0100)
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>
source3/winbindd/wb_xids2sids.c

index 891a4c2a4bd1a2dee67e83c3e989cb4ae2df9b50..3c72d9447a282965ca8945849abd65ea9dd84984 100644 (file)
@@ -357,9 +357,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;
                }