From 7a4ffa429e914e47aedbde3070042380cf67c5cd Mon Sep 17 00:00:00 2001 From: patrik Date: Wed, 1 Feb 2012 15:49:54 +0000 Subject: [PATCH] fixed undeclared variables --- scripts/http-qnap-nas-info.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-qnap-nas-info.nse b/scripts/http-qnap-nas-info.nse index 619f8d291..d4b61560a 100644 --- a/scripts/http-qnap-nas-info.nse +++ b/scripts/http-qnap-nas-info.nse @@ -51,7 +51,7 @@ action = function(host, port) -- Retrieve file stdnse.print_debug(1, ("%s: Connecting to %s:%s"):format(SCRIPT_NAME, host.targetname or host.ip, port.number)) - data = http.get(host, port, path) + local data = http.get(host, port, path) -- Check if file exists if data and data.status and data.status == 200 and data.body and data.body ~= "" then