]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Set ABANDONED_LEASE flag when abandoning a lease.
authorTed Lemon <source@isc.org>
Thu, 6 Mar 1997 19:28:18 +0000 (19:28 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 Mar 1997 19:28:18 +0000 (19:28 +0000)
common/memory.c

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