mirror of
https://github.com/reactos/reactos.git
synced 2025-04-18 19:47:14 +00:00
Fixed the repeating DHCPOFFER/DHCPACK. I was assuming that the lease timeout
was relative but it's been adjusted by the time we get here. Thanks to hpoussineau for helping with this bug. svn path=/trunk/; revision=14657
This commit is contained in:
parent
e0dda3685a
commit
631838f4a3
1 changed files with 1 additions and 1 deletions
|
@ -685,7 +685,7 @@ bind_lease(struct interface_info *ip)
|
|||
/* Timeout of zero means no timeout (some implementations seem to use
|
||||
* one day).
|
||||
*/
|
||||
if( ip->client->active->renewal )
|
||||
if( ip->client->active->renewal - cur_time )
|
||||
add_timeout(ip->client->active->renewal, state_bound, ip);
|
||||
|
||||
note("bound to %s -- renewal in %d seconds.",
|
||||
|
|
Loading…
Reference in a new issue