From 8f907ae853e0d75fa490cfe2455c57e08f66ee64 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Jul 2012 06:00:45 +0000 Subject: [PATCH] Local variable. --- scripts/http-git.nse | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/http-git.nse b/scripts/http-git.nse index e43e6969f..3d4fe9806 100644 --- a/scripts/http-git.nse +++ b/scripts/http-git.nse @@ -225,6 +225,8 @@ function action(host, port) -- versions of Git when there are more than one repo format version, we will -- display that too. if ok(".git/config") then + local config = replies[".git/config"].body + -- These are some popular / well-known Git hosting services and/or hosting services -- that allow deployment via 'git push' local popular_remotes = { @@ -235,7 +237,7 @@ function action(host, port) } -- Go through all of the popular remotes and look for it in the config file for _, remote in ipairs(popular_remotes) do - lookforremote(replies[".git/config"].body, remote[1], remote[2], remote[3]) + lookforremote(config, remote[1], remote[2], remote[3]) end end