Fixes risk not shown in generated flow-risk alerts

Fixes #4594
This commit is contained in:
Simone Mainardi 2020-10-19 11:10:19 +02:00
parent 5c8e247723
commit 27c1318ab6
5 changed files with 15 additions and 8 deletions

View file

@ -154,7 +154,7 @@ function script.hooks.protocolDetected(now)
if handler and handler.handle_risk then
-- Handler expect three params, namely flow-, client- and server-scores
handler.handle_risk(table.unpack(risk2scores[risk_id] or DEFAULT_SCORES))
handler.handle_risk(risk_id, table.unpack(risk2scores[risk_id] or DEFAULT_SCORES))
end
::continue::