diff --git a/lib/portscanner.js b/lib/portscanner.js index 4047230..fab9f13 100644 --- a/lib/portscanner.js +++ b/lib/portscanner.js @@ -117,7 +117,7 @@ function findAPortWithStatus(status, startPort, endPort, host, callback) { numberOfPortsChecked++ if (statusOfPort === status) { foundPort = true - callback(null, port) + callback(error, port) } else if (error) { callback(error)