1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Make a variable local

This commit is contained in:
dmiller
2021-07-02 20:01:31 +00:00
parent 7c61f7c9c3
commit 51180ec958

View File

@@ -40,16 +40,15 @@ hostrule = function(host)
end end
action = function(host,port) action = function(host,port)
local status, smbstate
local output = stdnse.output_table() local output = stdnse.output_table()
status, smbstate = smb.start(host) local status, smbstate = smb.start(host)
if(status == false) then if(status == false) then
return false, smbstate return false, smbstate
end end
-- SMB signing configuration appears to be global so -- SMB signing configuration appears to be global so
-- there is no point of trying different dialects. -- there is no point of trying different dialects.
status, dialect = smb2.negotiate_v2(smbstate) local status, dialect = smb2.negotiate_v2(smbstate)
if status then if status then
local message_signing = {} local message_signing = {}
-- Signing configuration. SMBv2 servers support two flags: -- Signing configuration. SMBv2 servers support two flags: