From 631838f4a31b4839743cbe21e79f7508d6c0a7be Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sun, 17 Apr 2005 19:47:44 +0000 Subject: [PATCH] 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 --- reactos/subsys/system/dhcp/dhclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/dhcp/dhclient.c b/reactos/subsys/system/dhcp/dhclient.c index 44c3541bf0e..dd8700314eb 100644 --- a/reactos/subsys/system/dhcp/dhclient.c +++ b/reactos/subsys/system/dhcp/dhclient.c @@ -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.",