From a04cec5c624e4486b5ff56b064443ec3dbdfd181 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 2 Dec 2016 15:25:10 +0000 Subject: [PATCH] idmap_autorid: Use acquire_range directly idmap_autorid_get_domainrange is reading again for an existing mapping. We know we need to allocate here, so avoid passing down that r/o boolean :-) Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- source3/winbindd/idmap_autorid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index bf908f488d8..c27c5035562 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -656,7 +656,7 @@ static NTSTATUS idmap_autorid_sid_to_id(struct idmap_tdb_common_context *common, return NT_STATUS_NONE_MAPPED; allocate: - ret = idmap_autorid_get_domainrange(autorid_db, &range, false); + ret = idmap_autorid_acquire_range(autorid_db, &range); if (!NT_STATUS_IS_OK(ret)) { DBG_NOTICE("Could not determine range for domain: %s, " "check previous messages for reason\n",