mirror of
https://github.com/nmap/nmap.git
synced 2026-01-23 14:49:02 +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:
@@ -41,7 +41,7 @@ local maxdepth = 10
|
||||
local get_page_from_host
|
||||
|
||||
local soc
|
||||
local catch = function() soc.close() end
|
||||
local catch = function() soc:close() end
|
||||
local try = nmap.new_try(catch)
|
||||
|
||||
portrule = shortport.service("http")
|
||||
|
||||
Reference in New Issue
Block a user