* IPAddress.cs: verify the last IPv4 digit too.
Fixes bug #612135.
svn path=/trunk/mcs/; revision=159635
+2010-06-28 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * IPAddress.cs: verify the last IPv4 digit too.
+ Fixes bug #612135.
+
2010-06-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpWebRequest.cs: DELETE allows an entity body.
#endif
}
+ if (val > 0xFF)
+ return null; // e.g. 256.0.0.1
if (i == (ips.Length - 1))
i = 3;
- else if (val > 0xFF)
- return null; // e.g. 256.0.0.1
for (int j = 0; val > 0; j++, val /= 0x100)
a |= (val & 0xFF) << ((i - j) << 3);
}