1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fixed a bunch of script errors reported by Duarte Silva:

http://seclists.org/nmap-dev/2012/q1/246
This commit is contained in:
patrik
2012-01-28 22:03:11 +00:00
parent fb546789a1
commit 6724733817
3 changed files with 11 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ local function cmdReq(host, port, url, result)
result[item] = { name = name, value = val }
end
end
return result
return true, result
end
action = function(host, port)
@@ -121,7 +121,11 @@ action = function(host, port)
local result
for _, u in ipairs(urls) do
result = cmdReq(host, port, u, result)
status, result = cmdReq(host, port, u, result)
end
if ( not(result) or not(next(result)) ) then
return
end
local output = tab.new(2)