Fix missing CVE scores (#7901)

This commit is contained in:
Nicolo Maio 2023-10-12 22:49:09 +02:00
parent 525463c55e
commit c9d7c5fb0e
2 changed files with 11 additions and 1 deletions

View file

@ -217,11 +217,15 @@ local function format_result(result)
end
rsp[#rsp].host_in_mem = host_in_mem
end
if (rsp[#rsp].cve ~= nil) then
table.sort(rsp[#rsp].cve, function (k1, k2) return split(k1,"|")[2] < split(k2,"|")[2] end)
end
end
if not isEmptyString(sort) and sort == 'ip' then
table.sort(rsp, compare_host)
end
end
end
return rsp
end