Ignore IP assignment pool ranges that begin with 0.0.0.0 or that contain no IPs.

This commit is contained in:
Adam Ierymenko 2016-03-24 13:34:01 -07:00
parent 2c328d61ad
commit 2b3e1d5c10

View File

@ -2009,7 +2009,7 @@ NetworkController::ResultCode SqliteNetworkController::_doNetworkConfigRequest(c
uint32_t ipRangeStart = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeStartB + 12)));
uint32_t ipRangeEnd = Utils::ntoh(*(reinterpret_cast<const uint32_t *>(ipRangeEndB + 12)));
if (ipRangeEnd < ipRangeStart)
if ((ipRangeEnd <= ipRangeStart)||(ipRangeStart == 0))
continue;
uint32_t ipRangeLen = ipRangeEnd - ipRangeStart;