From ddc52fc76cb2694019e9a47211854109a5352e8a Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sun, 17 Apr 2005 19:16:39 +0000 Subject: [PATCH] Don't set a zero timeout for a lease. Zero here is taken to mean infinite. svn path=/trunk/; revision=14653 --- reactos/subsys/system/dhcp/dhclient.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/subsys/system/dhcp/dhclient.c b/reactos/subsys/system/dhcp/dhclient.c index 4e1b3fee342..44c3541bf0e 100644 --- a/reactos/subsys/system/dhcp/dhclient.c +++ b/reactos/subsys/system/dhcp/dhclient.c @@ -682,7 +682,11 @@ bind_lease(struct interface_info *ip) ip->client->new = NULL; /* Set up a timeout to start the renewal process. */ - add_timeout(ip->client->active->renewal, state_bound, ip); + /* Timeout of zero means no timeout (some implementations seem to use + * one day). + */ + if( ip->client->active->renewal ) + add_timeout(ip->client->active->renewal, state_bound, ip); note("bound to %s -- renewal in %d seconds.", piaddr(ip->client->active->address),