From 3acf1dca2e6516cd334f523bd725ec529dab5c85 Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Fri, 1 Sep 2000 18:30:36 +0000 Subject: [PATCH] Don't even try to do billing on static leases. --- server/dhcp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/dhcp.c b/server/dhcp.c index 86ca626bf..ac748728f 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.163 2000/09/01 16:57:44 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.164 2000/09/01 18:30:36 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1466,8 +1466,7 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp) } /* If we are configured to do per-class billing, do it. */ - if (have_billing_classes) { - + if (have_billing_classes && !(lease -> flags & STATIC_LEASE)) { /* See if the lease is currently being billed to a class, and if so, whether or not it can continue to be billed to that class. */ -- 2.47.2