From: Ted Lemon Date: Fri, 30 Jun 2000 00:48:55 +0000 (+0000) Subject: For non-failover pools, always allocate off the free lease list. X-Git-Tag: V3-BETA-2-PATCH-1~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8023ece86a777cc12b573a4cb8670c8b364136d8;p=thirdparty%2Fdhcp.git For non-failover pools, always allocate off the free lease list. --- diff --git a/server/dhcp.c b/server/dhcp.c index 33986e70b..9fcf2f4ce 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.154 2000/06/12 22:20:43 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.155 2000/06/30 00:48:55 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -3099,7 +3099,8 @@ int allocate_lease (struct lease **lp, struct packet *packet, *peer_has_leases = 1; lease = pool -> backup; } - } + } else + lease = pool -> free; #else if (pool -> free) lease = pool -> free;