Permalink
Browse files

return after next() in the whitelist checks

  • Loading branch information...
godsflaw committed Feb 12, 2014
1 parent 6a46e10 commit feb24ab9ec682462f6a617138ab726c37a317531
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/lookup_rdns.strict.js
@@ -73,7 +73,7 @@ exports.hook_lookup_rdns = function (next, connection) {
if (_in_whitelist(connection, plugin, connection.remote_ip)) {
called_next++;
- next(OK, connection.remote_ip);
+ return next(OK, connection.remote_ip);
}
timeout_id = setTimeout(function () {
@@ -108,7 +108,7 @@ exports.hook_lookup_rdns = function (next, connection) {
if (_in_whitelist(connection, plugin, domains[i])) {
called_next++;
clearTimeout(timeout_id);
- next(OK, domains[i]);
+ return next(OK, domains[i]);
}
}

0 comments on commit feb24ab

Please sign in to comment.