Refined guess that does not happen for protocols that have been excluded

This commit is contained in:
Luca Deri
2017-02-12 20:14:11 +01:00
parent 1d2e67d38c
commit b16769ddbe
2 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -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;