mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 15:46:45 +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:
parent
90a2063c9d
commit
59c53f07fd
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue