From 399d2416b53d78874a0327e2e189dcbb968bf1a5 Mon Sep 17 00:00:00 2001 From: henri Date: Thu, 19 Jan 2012 22:03:06 +0000 Subject: [PATCH] Removed declarations of unused variables. --- scripts/http-open-proxy.nse | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/http-open-proxy.nse b/scripts/http-open-proxy.nse index 42246fa5b..38354c45c 100644 --- a/scripts/http-open-proxy.nse +++ b/scripts/http-open-proxy.nse @@ -104,7 +104,6 @@ function default_test(host, port) local get_status, head_status, conn_status local get_r1, get_r2, get_r3 local get_cstatus, head_cstatus - local _ -- Start test n1 -> google.com -- making requests @@ -189,14 +188,10 @@ end portrule = shortport.port_or_service({8123,3128,8000,8080},{'polipo','squid-http','http-proxy'}) action = function(host, port) - local response - local i - local retval local supported_methods = "\nMethods succesfully tested: " local fstatus = false local def_test = true local test_url, pattern - local hostname test_url, pattern = proxy.return_args() @@ -210,8 +205,7 @@ action = function(host, port) -- If any of the tests were OK, then the proxy is potentially open if fstatus then - retval = "Potentially OPEN proxy.\n" .. supported_methods - return retval + return "Potentially OPEN proxy.\n" .. supported_methods elseif not fstatus and supported_methods then return supported_methods end