]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix one-lease-per-client.
authorTed Lemon <source@isc.org>
Mon, 4 Oct 1999 23:51:45 +0000 (23:51 +0000)
committerTed Lemon <source@isc.org>
Mon, 4 Oct 1999 23:51:45 +0000 (23:51 +0000)
server/dhcp.c

index 21ca3633beb1ad1c7943218b05b3143ee03c5809..8817f05f2b4cc93ec1bb568857b8c4f1a45c848a 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.109 1999/10/01 03:25:24 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.110 1999/10/04 23:51:45 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -928,7 +928,7 @@ void ack_lease (packet, lease, offer, when, msg)
           network interface, and will only ever remember one lease.   So
           if it sends a DHCPREQUEST, and doesn't get the lease, it's already
           forgotten about its old lease, so we can too. */
-       if (offer == DHCPREQUEST &&
+       if (packet -> packet_type == DHCPREQUEST &&
            (oc = lookup_option (&server_universe, state -> options,
                                 SV_ONE_LEASE_PER_CLIENT)) &&
            evaluate_boolean_option_cache (packet, lease, packet -> options,