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:
Tobias Brunner
2018-09-11 18:18:50 +02:00
parent 648709b392
commit 55fb268b51
+1 -1
View File
@@ -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))
{