1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 20:51:30 +00:00

Fix exception thrown in reverse-index when it is run again a host with no open ports.

/reverse-index.nse:112: bad argument #1 to 'pairs' (table expected, got nil)
This commit is contained in:
tomsellers
2012-07-04 17:58:21 +00:00
parent bc3eb43f72
commit 99c192cd1d

View File

@@ -136,6 +136,10 @@ end
postaction = function() postaction = function()
local db = nmap.registry[SCRIPT_NAME] local db = nmap.registry[SCRIPT_NAME]
if ( db == nil ) then
return false
end
local results local results
local mode = stdnse.get_script_args("reverse-index.mode") or "horizontal" local mode = stdnse.get_script_args("reverse-index.mode") or "horizontal"