diff options
author | Luca Deri <deri@ntop.org> | 2017-02-12 20:14:11 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2017-02-12 20:14:11 +0100 |
commit | b16769ddbe0f20000b52fa86b7a1d6a966705c28 (patch) | |
tree | fe7c6ba6b0c52911a5810570048ec4ec65d8075f /src/lib/protocols | |
parent | 1d2e67d38ca195f115b3f06e1dbda3ab9c6d3df7 (diff) |
Refined guess that does not happen for protocols that have been excluded
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/mssql_tds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/mssql_tds.c b/src/lib/protocols/mssql_tds.c index 8a78266a9..42cecb8e2 100644 --- a/src/lib/protocols/mssql_tds.c +++ b/src/lib/protocols/mssql_tds.c @@ -46,7 +46,7 @@ void ndpi_search_mssql_tds(struct ndpi_detection_module_struct *ndpi_struct, str struct ndpi_packet_struct *packet = &flow->packet; struct tds_packet_header *h = (struct tds_packet_header*) packet->payload; - if (packet->payload_packet_len < sizeof(struct tds_packet_header)) { + if(packet->payload_packet_len < sizeof(struct tds_packet_header)) { NDPI_LOG(NDPI_PROTOCOL_MSSQL_TDS, ndpi_struct, NDPI_LOG_DEBUG, "exclude mssql_tds\n"); NDPI_ADD_PROTOCOL_TO_BITMASK(flow->excluded_protocol_bitmask, NDPI_PROTOCOL_MSSQL_TDS); return; |