From aa87f1db150bbe01cd7ace4ec656f07305737aa1 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 16 Oct 2008 21:58:59 +0000 Subject: [PATCH] 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. --- scripts/anonFTP.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/anonFTP.nse b/scripts/anonFTP.nse index 41d13ae70..9a7a44ef5 100644 --- a/scripts/anonFTP.nse +++ b/scripts/anonFTP.nse @@ -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))