From: Ted Lemon Date: Tue, 28 Sep 1999 22:52:50 +0000 (+0000) Subject: Integrate memory.c:1.61. X-Git-Tag: V3-BETA-1-PATCH-2~5^2~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ae74a60bb293c92682206c7e94a68c92345805;p=thirdparty%2Fdhcp.git Integrate memory.c:1.61. --- diff --git a/server/mdb.c b/server/mdb.c index b7d536a23..dea5b7ab0 100644 --- a/server/mdb.c +++ b/server/mdb.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: mdb.c,v 1.1 1999/09/28 22:49:31 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: mdb.c,v 1.2 1999/09/28 22:52:50 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -972,6 +972,8 @@ int supersede_lease (comp, lease, commit) the previous item on the list. */ if ((comp -> prev = lp -> prev)) comp -> prev -> next = comp; + else + comp -> pool -> leases = comp; comp -> next = lp; lp -> prev = comp; } @@ -992,6 +994,8 @@ int supersede_lease (comp, lease, commit) the next item on the list. */ if ((comp -> next = lp -> next)) comp -> next -> prev = comp; + else + comp -> pool -> last_lease = comp; comp -> prev = lp; lp -> next = comp; }