1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09: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:
kris
2007-12-28 07:35:51 +00:00
parent a7ebc33b1b
commit 23040d67ac
6 changed files with 11 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ require('stdnse')
require('strbuf')
local soc
local catch = function() soc.close() end
local catch = function() soc:close() end
local try = nmap.new_try(catch)
portrule = shortport.port_or_service(23, 'telnet')