stroke: Lease enumerator is always defined
This function is only called for existing pools (under the protection of a read lock).
This commit is contained in:
@@ -1059,7 +1059,7 @@ static void pool_leases(private_stroke_list_t *this, FILE *out, char *pool,
|
||||
fprintf(out, "Leases in pool '%s', usage: %u/%u, %u online\n",
|
||||
pool, online + offline, size, online);
|
||||
enumerator = this->attribute->create_lease_enumerator(this->attribute, pool);
|
||||
while (enumerator && enumerator->enumerate(enumerator, &id, &lease, &on))
|
||||
while (enumerator->enumerate(enumerator, &id, &lease, &on))
|
||||
{
|
||||
if (!address || address->ip_equals(address, lease))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user