]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Adjust call to allocate_lease().
authorTed Lemon <source@isc.org>
Wed, 3 May 2000 22:57:42 +0000 (22:57 +0000)
committerTed Lemon <source@isc.org>
Wed, 3 May 2000 22:57:42 +0000 (22:57 +0000)
server/bootp.c

index 49dce78344b88da94c78667e3276328792d4633d..6062a4366c28cdb01d15c72817074b11ec7b1aee 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.61 2000/03/17 04:00:30 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.62 2000/05/03 22:57:42 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -68,6 +68,7 @@ void bootp (packet)
        struct option_cache *oc;
        char msgbuf [1024];
        int ignorep;
+       int peer_has_leases = 0;
 
        if (packet -> raw -> op != BOOTREQUEST)
                return;
@@ -124,7 +125,8 @@ void bootp (packet)
 
                /* Otherwise, try to allocate one. */
                lease = allocate_lease (packet,
-                                       packet -> shared_network -> pools, 0);
+                                       packet -> shared_network -> pools, 0,
+                                       &peer_has_leases);
                if (lease) {
                        lease -> host = host;
                        ack_lease (packet, lease, 0, 0, msgbuf, 0);