mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 15:56:00 +00:00
[master] find_lease() now ACKs reclaimed abandoned addresses
Merges in rt41815a.
This commit is contained in:
@@ -4562,6 +4562,7 @@ int find_lease (struct lease **lp,
|
|||||||
#if defined (DEBUG_FIND_LEASE)
|
#if defined (DEBUG_FIND_LEASE)
|
||||||
log_info ("not choosing requested address (!).");
|
log_info ("not choosing requested address (!).");
|
||||||
#endif
|
#endif
|
||||||
|
lease_dereference (&ip_lease, MDL);
|
||||||
} else {
|
} else {
|
||||||
#if defined (DEBUG_FIND_LEASE)
|
#if defined (DEBUG_FIND_LEASE)
|
||||||
log_info ("choosing lease on requested address.");
|
log_info ("choosing lease on requested address.");
|
||||||
@@ -4570,7 +4571,6 @@ int find_lease (struct lease **lp,
|
|||||||
if (lease -> host)
|
if (lease -> host)
|
||||||
host_dereference (&lease -> host, MDL);
|
host_dereference (&lease -> host, MDL);
|
||||||
}
|
}
|
||||||
lease_dereference (&ip_lease, MDL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If we got a lease that matched the client identifier, we may want
|
/* If we got a lease that matched the client identifier, we may want
|
||||||
|
Reference in New Issue
Block a user