core: correct shared IP range to be 10.42.x.1 as is documented (bgo #657127)

This fixes possible "overflow" of range from 10.42.x.1 to the fourth (on LSB)
or the second (on MSB) octet.
This commit is contained in:
Jiří Klimeš 2011-11-03 09:16:56 +01:00
parent fc0739a5d4
commit 077afa02f5

View file

@ -1863,7 +1863,7 @@ release_shared_ip (gpointer data)
static guint32
reserve_shared_ip (void)
{
guint32 start = (guint32) ntohl (0x0a2a2b01); /* 10.42.43.1 */
guint32 start = (guint32) ntohl (0x0a2a0001); /* 10.42.0.1 */
guint32 count = 0;
while (g_hash_table_lookup (shared_ips, GUINT_TO_POINTER (start + count))) {