diff options
Diffstat (limited to 'src/lib/protocols/mysql.c')
-rw-r--r-- | src/lib/protocols/mysql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/protocols/mysql.c b/src/lib/protocols/mysql.c index 7560f6030..5e9e4e090 100644 --- a/src/lib/protocols/mysql.c +++ b/src/lib/protocols/mysql.c @@ -35,6 +35,8 @@ static void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_stru { struct ndpi_packet_struct const * const packet = &ndpi_struct->packet; + NDPI_LOG_DBG(ndpi_struct, "search MySQL\n"); + if(packet->payload_packet_len > 70 && packet->payload_packet_len < 120) { u_int32_t length = (packet->payload[2] << 16) + (packet->payload[1] << 8) + packet->payload[0]; |