]> git.vomp.tv Git - vompserver.git/commitdiff
Bug fix for client ip always evaluating true
authorChris Tallon <chris@vomp.tv>
Mon, 5 Nov 2007 21:05:30 +0000 (21:05 +0000)
committerChris Tallon <chris@vomp.tv>
Mon, 5 Nov 2007 21:05:30 +0000 (21:05 +0000)
bootpd.c

index 777e8b23359e7dc50bf70c62fd2dad834344ff9a..39cc6a4d0398276f7a2c36218157d87b5a2db997 100644 (file)
--- 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);
   }