Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mcs/class/System/System.Net/ChangeLog7
-rw-r--r--mcs/class/System/System.Net/EndpointPermission.cs2
2 files changed, 9 insertions, 0 deletions
diff --git a/mcs/class/System/System.Net/ChangeLog b/mcs/class/System/System.Net/ChangeLog
index fe24ebf4f1d..46caa36d569 100644
--- a/mcs/class/System/System.Net/ChangeLog
+++ b/mcs/class/System/System.Net/ChangeLog
@@ -1,5 +1,12 @@
2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
+ * EndpointPermission.cs: Fix IsSubsetof(hostname) so that the regression
+ tests work. In particular, IsSubsetOf ("12.13.*.*", "12.13.14.*") failed
+ because 14 wasn't a subset of * (which it is). Fix: if part1 is we
+ continue to the next portion.
+
+2005-01-20 Jonathan Pryor <jonpryor@vt.edu>
+
* IPAddress.cs (ParseIPV4): Fix so that the regression tests work. In
particular, " foo" and ".1.1.6" weren't being caught (" foo" because it
started with a space, and ".1.1.6" because the split string accepted a
diff --git a/mcs/class/System/System.Net/EndpointPermission.cs b/mcs/class/System/System.Net/EndpointPermission.cs
index 434ba912fde..92ff6941a82 100644
--- a/mcs/class/System/System.Net/EndpointPermission.cs
+++ b/mcs/class/System/System.Net/EndpointPermission.cs
@@ -157,6 +157,8 @@ namespace System.Net
int part2 = ToNumber (h2 [i]);
if (part2 == -1)
return false;
+ if (part1 == 256)
+ continue;
if (part1 != part2 && part2 != 256)
return false;
}