1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 07:29:03 +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

@@ -51,7 +51,7 @@ Driver = {
if ( status ) then
return true, brute.Account:new(username, password, creds.State.VALID)
elseif ( resp ~= "Authentication failed" ) then
local err = brute.Error:new( err )
local err = brute.Error:new( resp )
err:setRetry( true )
return false, err
end
@@ -100,7 +100,7 @@ action = function(host, port)
engine.options.script_name = SCRIPT_NAME
engine.options.firstonly = true
status, result = engine:start()
local status, result = engine:start()
return result
end