winbindd: update xid in wb_xids2sids_state->xids with what we got
authorRalph Boehme <slow@samba.org>
Thu, 21 Feb 2019 17:40:20 +0000 (18:40 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 23 Feb 2019 06:54:09 +0000 (07:54 +0100)
In preparation of priming the idmap cache in the top-level
wb_xids2sids_done(), not in the per-idmap-domain callback
wb_xids2sids_dom_done().

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 3c72d9447a282965ca8945849abd65ea9dd84984..c088560adecfce2312ef6c08f3cb84e0fa9e8ebd 100644 (file)
@@ -369,6 +369,7 @@ static void wb_xids2sids_dom_done(struct tevent_req *subreq)
                }
 
                sid_copy(&state->all_sids[i], &state->dom_sids[dom_sid_idx]);
+               *id = state->dom_xids[dom_sid_idx];
 
                /*
                 * Prime the cache after an xid2sid call. It's