diff options
Diffstat (limited to 'lib/tls.js')
-rw-r--r-- | lib/tls.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tls.js b/lib/tls.js index 2247bb9ee5..5a03c3c30f 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -122,9 +122,10 @@ function check(hostParts, pattern, wildcards) { return false; // Check host parts from right to left first. - for (var i = hostParts.length - 1; i > 0; i -= 1) + for (var i = hostParts.length - 1; i > 0; i -= 1) { if (hostParts[i] !== patternParts[i]) return false; + } const hostSubdomain = hostParts[0]; const patternSubdomain = patternParts[0]; |