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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user