mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user