1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

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 <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2016-12-02 15:25:10 +00:00
parent ba02936032
commit a04cec5c62

View File

@ -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",