From 1f9501cad63717d6e4ea01974f853b199f359b40 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Mon, 26 Sep 2016 14:27:28 -0700 Subject: [PATCH] winbind: Fix passing idmap failure from wb_sids2xids back to callers If the idmap call in wb_sids2xids fails, the callers expect xid.type to be set to ID_TYPE_NOT_SPECIFIED, not the internal type field that is initialized from the lookupsids call. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12295 Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Sep 30 02:10:29 CEST 2016 on sn-devel-144 --- source3/winbindd/wb_sids2xids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/wb_sids2xids.c b/source3/winbindd/wb_sids2xids.c index e16917f1545..25260be3384 100644 --- a/source3/winbindd/wb_sids2xids.c +++ b/source3/winbindd/wb_sids2xids.c @@ -305,7 +305,7 @@ static void wb_sids2xids_done(struct tevent_req *subreq) * All we can do here is to report "not mapped" */ for (i=0; inum_ids; i++) { - src->ids[i].type = ID_TYPE_NOT_SPECIFIED; + src->ids[i].xid.type = ID_TYPE_NOT_SPECIFIED; } } -- 2.34.1