]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Remember lease flags when doing the commit routine.
authorTed Lemon <source@isc.org>
Tue, 5 Dec 2000 07:21:31 +0000 (07:21 +0000)
committerTed Lemon <source@isc.org>
Tue, 5 Dec 2000 07:21:31 +0000 (07:21 +0000)
server/dhcp.c

index 31c74bd82d9b24810698723e2ca6b31d64e4202b..de8aa618d2b3b3cb933f77365a64bbc8c6bdcd02 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.171 2000/11/30 14:04:06 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.172 2000/12/05 07:21:31 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1976,6 +1976,8 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp)
                data_string_forget (&d1, MDL);
        }
 
+       lt -> flags = lease -> flags & ~PERSISTENT_FLAGS;
+
        /* If there are statements to execute when the lease is
           committed, execute them. */
        if (lease -> on_commit && (!offer || offer == DHCPACK)) {