From b0f9708dd08248c3298f3a64bdbd53ccf2ce4c7c Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Thu, 6 Mar 1997 19:28:18 +0000 Subject: [PATCH] Set ABANDONED_LEASE flag when abandoning a lease. --- common/memory.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/memory.c b/common/memory.c index 9e81d8c77..2ddb03b43 100644 --- a/common/memory.c +++ b/common/memory.c @@ -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; -- 2.47.3