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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 4 Mar 2019 10:37:55 +0000 (10:37 +0000)
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>
(cherry picked from commit 7f23ef7b2cf7bd6e8dc087aa15137292b421a689)

source3/winbindd/wb_xids2sids.c

index ae7dbfd4ec2090ba6bf8b3db36cda17cc2c67550..6555d64f8e26e3d9ae63316ff6dc9e83667ab555 100644 (file)
@@ -366,6 +366,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