Index: src/pkg/crypto/x509/x509.go |
=================================================================== |
--- a/src/pkg/crypto/x509/x509.go |
+++ b/src/pkg/crypto/x509/x509.go |
@@ -407,8 +407,8 @@ |
return false |
} |
- patternParts := strings.Split(pattern, ".", 0) |
- hostParts := strings.Split(host, ".", 0) |
+ patternParts := strings.Split(pattern, ".", -1) |
+ hostParts := strings.Split(host, ".", -1) |
if len(patternParts) != len(hostParts) { |
return false |