1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-31 20:09:02 +00:00

Fixed errors found by nse_check_globals.

This commit is contained in:
perdo
2012-06-06 22:23:02 +00:00
parent 14dc780226
commit 5ac6c7d64a
109 changed files with 196 additions and 128 deletions

View File

@@ -49,7 +49,7 @@ Driver = {
connect = function( self )
self.socket = nmap.new_socket()
status, err = self.socket:connect(self.host, self.port)
local status, err = self.socket:connect(self.host, self.port)
self.socket:set_timeout(tonumber(arg_timeout) * 1000)
if(not(status)) then
return false, brute.Error:new( "Couldn't connect to host: " .. err )
@@ -58,7 +58,7 @@ Driver = {
end,
login = function (self, user, pass)
status, response = mysql.receiveGreeting(self.socket)
local status, response = mysql.receiveGreeting(self.socket)
if(not(status)) then
return false,brute.Error:new(response)
end