From: Ted Lemon Date: Tue, 5 Dec 2000 07:21:31 +0000 (+0000) Subject: Remember lease flags when doing the commit routine. X-Git-Tag: V3-BETA-2-PATCH-12~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6708cba5cbde28ea1d51034907d58a1183cc8b6;p=thirdparty%2Fdhcp.git Remember lease flags when doing the commit routine. --- diff --git a/server/dhcp.c b/server/dhcp.c index 31c74bd82..de8aa618d 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -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)) {