]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Expire all outstanding unexpired leases after loading lease file on startup.
authorTed Lemon <source@isc.org>
Fri, 8 Oct 1999 22:29:52 +0000 (22:29 +0000)
committerTed Lemon <source@isc.org>
Fri, 8 Oct 1999 22:29:52 +0000 (22:29 +0000)
server/db.c

index 1f3427a1c0479c2d7cb61fab310a63cb80b5f846..77a4fdac3e82f7bf9b3319646ab9085ca37cf6ac 100644 (file)
@@ -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 ();
        }