]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
For non-failover pools, always allocate off the free lease list.
authorTed Lemon <source@isc.org>
Fri, 30 Jun 2000 00:48:55 +0000 (00:48 +0000)
committerTed Lemon <source@isc.org>
Fri, 30 Jun 2000 00:48:55 +0000 (00:48 +0000)
server/dhcp.c

index 33986e70bc986e9f3663fe489e2b677768635a0f..9fcf2f4ce4718398db201762813f63532c849b7c 100644 (file)
@@ -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;