From e2bb7cc2713d3aed67b95324431a0ce7258b7e67 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 18 Jul 2011 20:44:22 +0000 Subject: [PATCH] Fix an indexing bug in http-vhosts.nse. Found by Daniel Miller. --- scripts/http-vhosts.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/http-vhosts.nse b/scripts/http-vhosts.nse index 16beec440..76f731b85 100644 --- a/scripts/http-vhosts.nse +++ b/scripts/http-vhosts.nse @@ -547,7 +547,7 @@ action = function(host, port) if not http_response["ERROR"] then result["ERROR"]={} end - result["ERROR"][result["ERROR"] + 1] = targetname + result["ERROR"][#result["ERROR"] + 1] = targetname else local status = tostring(http_response.status) if not result[status] then