summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2016-07-28 06:51:30 -0400
committerThomas Markwalder <tmark@isc.org>2016-07-28 06:51:30 -0400
commit6b797e44e97c606494018c5df6e57c9994a3a788 (patch)
treece567f7a215466bc3c8b3c99cd5090e8f1f1b6a5
parentdd3373f457d73a345afbe7778c47da71dbaf0248 (diff)
downloadisc-dhcp-6b797e44e97c606494018c5df6e57c9994a3a788.tar.gz
[master] find_lease() now ACKs reclaimed abandoned addresses
Merges in rt41815a.
-rw-r--r--server/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/dhcp.c b/server/dhcp.c
index 915d1b1a..c9b36325 100644
--- a/server/dhcp.c
+++ b/server/dhcp.c
@@ -4562,6 +4562,7 @@ int find_lease (struct lease **lp,
#if defined (DEBUG_FIND_LEASE)
log_info ("not choosing requested address (!).");
#endif
+ lease_dereference (&ip_lease, MDL);
} else {
#if defined (DEBUG_FIND_LEASE)
log_info ("choosing lease on requested address.");
@@ -4570,7 +4571,6 @@ int find_lease (struct lease **lp,
if (lease -> host)
host_dereference (&lease -> host, MDL);
}
- lease_dereference (&ip_lease, MDL);
}
/* If we got a lease that matched the client identifier, we may want