- The db-time-format option was documented in manpages.
+- Using reserved leases no longer results in 'lease with binding state
+ free not on its queue' error messages, thanks to a patch from Frode
+ Nordahl.
+
Changes since 4.1.0b1
- A missing "else" in dhcrelay.c could have caused an interface not to
/* Figure out which queue it's on. */
switch (comp -> binding_state) {
case FTS_FREE:
- lq = &comp -> pool -> free;
- if (!(comp->flags & RESERVED_LEASE))
+ if (comp->flags & RESERVED_LEASE)
+ lq = &comp->pool->reserved;
+ else {
+ lq = &comp->pool->free;
comp->pool->free_leases--;
+ }
#if defined(FAILOVER_PROTOCOL)
do_pool_check = 1;
break;
case FTS_BACKUP:
- lq = &comp -> pool -> backup;
- if (!(comp->flags & RESERVED_LEASE))
+ if (comp->flags & RESERVED_LEASE)
+ lq = &comp->pool->reserved;
+ else {
+ lq = &comp->pool->backup;
comp->pool->backup_leases--;
+ }
#if defined(FAILOVER_PROTOCOL)
do_pool_check = 1;