Commit 27cb314e authored by Simon Kelley's avatar Simon Kelley

Fix endless loop when dhcp-range goes away.

parent 56a1142f
...@@ -595,6 +595,8 @@ struct dhcp_lease *lease6_find_by_client(struct dhcp_lease *first, int lease_typ ...@@ -595,6 +595,8 @@ struct dhcp_lease *lease6_find_by_client(struct dhcp_lease *first, int lease_typ
if (!first) if (!first)
first = leases; first = leases;
else
first = first->next;
for (lease = first; lease; lease = lease->next) for (lease = first; lease; lease = lease->next)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment