summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/idmap_tdb_common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/winbindd/idmap_tdb_common.c b/source3/winbindd/idmap_tdb_common.c
index b232729763..5713fe2f4f 100644
--- a/source3/winbindd/idmap_tdb_common.c
+++ b/source3/winbindd/idmap_tdb_common.c
@@ -638,9 +638,11 @@ NTSTATUS idmap_tdb_common_sids_to_unixids(struct idmap_domain * dom,
state.dom = dom;
state.ids = ids;
state.allocate_unmapped = false;
- state.sid_to_unixid_fn =
- (ctx->sid_to_unixid_fn ==
- NULL) ? idmap_tdb_common_sid_to_unixid : ctx->sid_to_unixid_fn;
+ if (ctx->sid_to_unixid_fn == NULL) {
+ state.sid_to_unixid_fn = idmap_tdb_common_sid_to_unixid;
+ } else {
+ state.sid_to_unixid_fn = ctx->sid_to_unixid_fn;
+ }
ret = idmap_tdb_common_sids_to_unixids_action(ctx->db, &state);