1
0
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:
nnposter
2019-09-05 21:56:54 +00:00
parent 90a2063c9d
commit 59c53f07fd
2 changed files with 5 additions and 3 deletions

View File

@@ -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