]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
ABANDONED_LEASE is persistent, so set it in the lease structure, not in the supersede...
authorTed Lemon <source@isc.org>
Thu, 6 Mar 1997 19:45:20 +0000 (19:45 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 Mar 1997 19:45:20 +0000 (19:45 +0000)
common/memory.c

index 2ddb03b43da402fa00d12efe596bb0a846a2a111..e62b11671cbe07cc8eda2e6dd8896570abd7943d 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: memory.c,v 1.27 1997/03/06 19:28:18 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: memory.c,v 1.28 1997/03/06 19:45:20 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -633,9 +633,9 @@ void abandon_lease (lease, message)
 {
        struct lease lt;
 
+       lease -> flags |= ABANDONED_LEASE;
        lt = *lease;
        lt.ends = 0xFFFFFFFF;
-       lt.flags |= ABANDONED_LEASE;
        warn ("Abandoning IP address %s: %s",
              piaddr (lease -> ip_addr), message);
        lt.hardware_addr.htype = -1;