From 835bdff79c510e3943992bba3a21ac6f7166666c Mon Sep 17 00:00:00 2001
From: Chris Tallon <chris@vomp.tv>
Date: Mon, 5 Nov 2007 21:05:30 +0000
Subject: [PATCH] Bug fix for client ip always evaluating true

---
 bootpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bootpd.c b/bootpd.c
index 777e8b2..39cc6a4 100644
--- a/bootpd.c
+++ b/bootpd.c
@@ -141,7 +141,7 @@ void Bootpd::processRequest(UCHAR* data, int length)
   // See if we should enforce the IP from the config file
   int failure;
   long enforceConfigIP = config.getValueLong("Boot", "Override IP", &failure);
-  if (newClientIP && enforceConfigIP)
+  if (newClientIP[0] && enforceConfigIP)
   {
     log->log("BOOTPD", Log::DEBUG, "Will enforce IP %s on MVP even if it already has another", newClientIP);
   }
-- 
2.39.5