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