From 3197810fe1f2675afdb2b7b7e863c0f05cc26370 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 21 Feb 2019 18:39:46 +0100 Subject: winbindd: convert id to a pointer in wb_xids2sids_dom_done() No change in behaviour. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13802 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke (cherry picked from commit f8bf4fc608639695651f75c52b31f95e796a5a26) --- source3/winbindd/wb_xids2sids.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/winbindd/wb_xids2sids.c b/source3/winbindd/wb_xids2sids.c index aba83823c7b..ae7dbfd4ec2 100644 --- a/source3/winbindd/wb_xids2sids.c +++ b/source3/winbindd/wb_xids2sids.c @@ -354,9 +354,9 @@ static void wb_xids2sids_dom_done(struct tevent_req *subreq) dom_sid_idx = 0; for (i=0; inum_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; } -- cgit v1.2.1