1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Fixed bug that would make the script crash if no domain argument was specified.

This commit is contained in:
patrik
2012-01-28 21:34:11 +00:00
parent 991191186a
commit fb546789a1

View File

@@ -58,11 +58,11 @@ require 'dns'
require 'tab'
require 'target'
prerule = function() return true end
local arg_domain = stdnse.get_script_args(SCRIPT_NAME .. ".domain")
local arg_filter = stdnse.get_script_args(SCRIPT_NAME .. ".filter")
prerule = function() return not(not(arg_domain)) end
local function parseSvcList(services)
local i = 1
return function()