mirror of
https://github.com/nmap/nmap.git
synced 2026-01-03 21:29:01 +00:00
Fix the creation of an exception handler in anonFTP.nse. I changed
nmap.new_try(err_catch()) to nmap.new_try(err_catch) The first statement calles new_try with the result of calling the err_catch function, which is nil, when what is wanted is to call new_try with the function itself as an argument.
This commit is contained in:
@@ -26,7 +26,7 @@ action = function(host, port)
|
||||
socket:close()
|
||||
end
|
||||
|
||||
local try = nmap.new_try(err_catch())
|
||||
local try = nmap.new_try(err_catch)
|
||||
|
||||
socket:set_timeout(5000)
|
||||
try(socket:connect(host.ip, port.number, port.protocol))
|
||||
|
||||
Reference in New Issue
Block a user