From: Ted Lemon Date: Fri, 20 Apr 2001 20:39:26 +0000 (+0000) Subject: Notice if a lease is billed when it's already been billed. X-Git-Tag: V3-RC2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf7a92842a356d756f4afde205aa4c8b0914aeef;p=thirdparty%2Fdhcp.git Notice if a lease is billed when it's already been billed. --- diff --git a/server/class.c b/server/class.c index 290b7ce29..5b89bcca8 100644 --- a/server/class.c +++ b/server/class.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: class.c,v 1.28 2001/04/06 05:45:45 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: class.c,v 1.29 2001/04/20 20:39:26 mellon Exp $ Copyright (c) 1998-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ @@ -268,6 +268,11 @@ int bill_class (lease, class) { int i; + if (lease -> billing_class) { + log_error ("lease billed with existing billing arrangement."); + unbill_class (lease, lease -> billing_class); + } + if (class -> leases_consumed == class -> lease_limit) return 0;