1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Fix an indexing bug in http-vhosts.nse. Found by Daniel Miller.

This commit is contained in:
david
2011-07-18 20:44:22 +00:00
parent bbf254d90e
commit e2bb7cc271

View File

@@ -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