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

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tls.js b/lib/tls.js
index 2247bb9ee56..5a03c3c30f8 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];