1
0
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:
david
2008-10-16 21:58:59 +00:00
parent 3ff15bf16d
commit aa87f1db15

View File

@@ -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))