mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +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:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user