DHCP does multiple passes to allocate one IP. We want to update
the allocated IP, no matter what it's previous state.
The allocate_find query takes care of allocating the correct IP.
We don't need to do extra checks in the allocate_update query
callingstationid = '%{Calling-Station-Id}', \
username = '%{User-Name}', \
expiry_time = NOW() + INTERVAL ${lease_duration} SECOND \
- WHERE framedipaddress = '%I' AND expiry_time IS NULL"
+ WHERE framedipaddress = '%I'"
#
# This series of queries frees an IP number when an accounting