mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 16:39:03 +00:00
Prevent an error when optional argument "overrides" is not passed
Prevent a potentially unexpected side-effect when the argument is passed.
This commit is contained in:
@@ -51,10 +51,9 @@ hostrule = function(host)
|
||||
end
|
||||
|
||||
action = function(host,port)
|
||||
local status, supported_dialects, overrides
|
||||
local status, supported_dialects
|
||||
local output = stdnse.output_table()
|
||||
overrides = {}
|
||||
status, supported_dialects = smb.list_dialects(host, overrides)
|
||||
status, supported_dialects = smb.list_dialects(host)
|
||||
if status then
|
||||
for i, v in pairs(supported_dialects) do -- Mark SMBv1 as insecure
|
||||
if v == "NT LM 0.12" then
|
||||
|
||||
Reference in New Issue
Block a user