When we transition from RENEWING to REBINDING state we have to
authorflorian <florian@openbsd.org>
Sun, 14 Nov 2021 18:13:19 +0000 (18:13 +0000)
committerflorian <florian@openbsd.org>
Sun, 14 Nov 2021 18:13:19 +0000 (18:13 +0000)
commitaefb9fc245b83655f90303a127c60e6eaac6cf07
tree4adfbd76cf1bc575427fc5b0c81c5be9c02ce569
parent561952b1d172b76d58550489f25266ac7281d0bb
When we transition from RENEWING to REBINDING state we have to
calculate the next timeout based on the rebinding time (T2), not
renewal time (T1). At this point T1 already expired and we would wait
way too long, past the lease lifetime.

Spotted while investigating a problem reported by Zack Newman on misc@
sbin/dhcpleased/engine.c