From: Ted Lemon Date: Fri, 8 Oct 1999 22:29:52 +0000 (+0000) Subject: Expire all outstanding unexpired leases after loading lease file on startup. X-Git-Tag: BCTEL_SPECIAL_19991124~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05743349e6911e3fb53d7d2a518a9f2e572fab14;p=thirdparty%2Fdhcp.git Expire all outstanding unexpired leases after loading lease file on startup. --- diff --git a/server/db.c b/server/db.c index 1f3427a1c..77a4fdac3 100644 --- a/server/db.c +++ b/server/db.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: db.c,v 1.34 1999/10/07 06:36:31 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: db.c,v 1.35 1999/10/08 22:29:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -503,6 +503,7 @@ void db_startup (testp) read_leases (); if (!testp) { + expire_all_pools (); GET_TIME (&write_time); new_lease_file (); }