mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 14:25:41 +00:00
- An assertion in lease counting relating to reserved leases was repaired.
[ISC-Bugs #17130]
This commit is contained in:
@@ -2515,13 +2515,13 @@ void expire_all_pools ()
|
||||
if (l->binding_state == FTS_FREE) {
|
||||
if (i == FREE_LEASES)
|
||||
p->free_leases++;
|
||||
else
|
||||
else if (i != RESERVED_LEASES)
|
||||
log_fatal("Impossible case "
|
||||
"at %s:%d.", MDL);
|
||||
} else if (l->binding_state == FTS_BACKUP) {
|
||||
if (i == BACKUP_LEASES)
|
||||
p->backup_leases++;
|
||||
else
|
||||
else if (i != RESERVED_LEASES)
|
||||
log_fatal("Impossible case "
|
||||
"at %s:%d.", MDL);
|
||||
}
|
||||
@@ -2759,7 +2759,7 @@ void free_everything ()
|
||||
pool_reference (&pn, nc -> pools, MDL);
|
||||
do {
|
||||
struct lease **lptr[RESERVED_LEASES+1];
|
||||
|
||||
|
||||
if (pn) {
|
||||
pool_reference (&pc, pn, MDL);
|
||||
pool_dereference (&pn, MDL);
|
||||
@@ -2768,7 +2768,7 @@ void free_everything ()
|
||||
pool_reference (&pn, pc -> next, MDL);
|
||||
pool_dereference (&pc -> next, MDL);
|
||||
}
|
||||
|
||||
|
||||
lptr [FREE_LEASES] = &pc -> free;
|
||||
lptr [ACTIVE_LEASES] = &pc -> active;
|
||||
lptr [EXPIRED_LEASES] = &pc -> expired;
|
||||
|
Reference in New Issue
Block a user