mirror of
https://github.com/samba-team/samba.git
synced 2025-09-05 13:44:19 +03:00
ridalloc: Don't skip the first RID of a pool
Previously, if either of the rIDPreviousAllocation and rIDNextRID attributes were not present in a RID Set, the first RID in rIDAllocationPool was skipped over when determining their values. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Andrew Bartlett
parent
59d293b606
commit
2a3b82ae23
@@ -1469,8 +1469,8 @@ schemaUpdateNow: 1
|
||||
if prev_pool == uint64_max or next_rid == uint32_max:
|
||||
prev_pool = alloc_pool
|
||||
next_rid = prev_pool & uint32_max
|
||||
|
||||
next_rid += 1
|
||||
else:
|
||||
next_rid += 1
|
||||
|
||||
# Now check if our current pool is still usable
|
||||
prev_pool_lo = prev_pool & uint32_max
|
||||
|
Reference in New Issue
Block a user