mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
o Fixed multiple NSE scripts that weren't always properly closing their
sockets. The error message was:
"bad argument #1 to 'close' (nsock expected, got no value)"
This commit is contained in:
@@ -263,7 +263,7 @@ end
|
||||
|
||||
action = function(host, port)
|
||||
local soc, status, data
|
||||
local catch = function() soc.close() end
|
||||
local catch = function() soc:close() end
|
||||
local try = nmap.new_try(catch)
|
||||
|
||||
-- can't do anything without a hostname
|
||||
|
||||
Reference in New Issue
Block a user