diff options
author | Luca Deri <deri@ntop.org> | 2021-07-23 17:26:56 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-07-23 17:27:15 +0200 |
commit | 61fc5be202f05113de07c063fa3fc9ccc47625d8 (patch) | |
tree | e7cb3b63e579a5f7c072de7c8836bd3aace04b33 /src/lib/protocols/smb.c | |
parent | 4ffe1eb3c00d59fe746f4668ec9c6b3726848fce (diff) |
Reworked flow risk implementation
Diffstat (limited to 'src/lib/protocols/smb.c')
-rw-r--r-- | src/lib/protocols/smb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/smb.c b/src/lib/protocols/smb.c index ec301c504..27d13df44 100644 --- a/src/lib/protocols/smb.c +++ b/src/lib/protocols/smb.c @@ -46,7 +46,7 @@ void ndpi_search_smb_tcp(struct ndpi_detection_module_struct *ndpi_struct, struc if(memcmp(&packet->payload[4], smbv1, sizeof(smbv1)) == 0) { if(packet->payload[8] != 0x72) /* Skip Negotiate request */ { ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SMBV1, NDPI_PROTOCOL_NETBIOS); - ndpi_set_risk(flow, NDPI_SMB_INSECURE_VERSION); + ndpi_set_risk(ndpi_struct, flow, NDPI_SMB_INSECURE_VERSION); } } else ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_SMBV23, NDPI_PROTOCOL_NETBIOS); |