diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-01-06 11:01:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 11:01:28 +0100 |
commit | 19e531e20b5b8edf5952ddadff2d21106beae7e8 (patch) | |
tree | 0196b0f235ce2576e153efd2372726f795cd59cc /src/lib | |
parent | 12a7d55d271870218f54512fa177eb49c23c641a (diff) |
SSH: fix how the flow risk is set (#2652)
We should use the existing helper
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/protocols/ssh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/protocols/ssh.c b/src/lib/protocols/ssh.c index fcb5db055..06f58fd60 100644 --- a/src/lib/protocols/ssh.c +++ b/src/lib/protocols/ssh.c @@ -111,9 +111,9 @@ static void ssh_analyze_signature_version(struct ndpi_flow_struct *flow, } if(obsolete_ssh_version) - NDPI_SET_BIT(flow->risk, - is_client_signature ? NDPI_SSH_OBSOLETE_CLIENT_VERSION_OR_CIPHER : - NDPI_SSH_OBSOLETE_SERVER_VERSION_OR_CIPHER); + ndpi_set_risk(flow, + (is_client_signature ? NDPI_SSH_OBSOLETE_CLIENT_VERSION_OR_CIPHER : NDPI_SSH_OBSOLETE_SERVER_VERSION_OR_CIPHER), + NULL); } /* ************************************************************************ */ |