From: Chris Tallon Date: Mon, 5 Nov 2007 21:05:30 +0000 (+0000) Subject: Bug fix for client ip always evaluating true X-Git-Tag: r0-2-7~1 X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=835bdff79c510e3943992bba3a21ac6f7166666c;p=vompserver.git Bug fix for client ip always evaluating true --- 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); }