]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Use MAX_TIME for abandoned leases rather than an explicit constant (which was wrong).
authorTed Lemon <source@isc.org>
Sat, 8 Mar 1997 00:22:47 +0000 (00:22 +0000)
committerTed Lemon <source@isc.org>
Sat, 8 Mar 1997 00:22:47 +0000 (00:22 +0000)
common/memory.c

index 2e094deb4d63c234a2c103b6ade76bd4d5be445b..75a29bf8c6c8e7b3b4d39db1a60ba9fcbb1d15ff 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: memory.c,v 1.30 1997/03/06 22:20:17 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: memory.c,v 1.31 1997/03/08 00:22:47 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -636,7 +636,7 @@ void abandon_lease (lease, message)
 
        lease -> flags |= ABANDONED_LEASE;
        lt = *lease;
-       lt.ends = 0xFFFFFFFF;
+       lt.ends = MAX_TIME;
        warn ("Abandoning IP address %s: %s",
              piaddr (lease -> ip_addr), message);
        lt.hardware_addr.htype = 0;