diff options
author | tianzhishuizhu <tianzhishuizhu5@gamil.com> | 2016-09-08 20:55:26 +0800 |
---|---|---|
committer | tianzhishuizhu <tianzhishuizhu5@gamil.com> | 2016-09-08 20:55:26 +0800 |
commit | c10052764b658826ba4da73e11e6ff153d4bc916 (patch) | |
tree | b135eb3eff0e12a9ed31bb35a4c3bb95ed069372 /src | |
parent | 9ddaccbae0c35eec2cfc855d03ff04dcdbffe1ae (diff) |
payload min length
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/protocols/mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/mysql.c b/src/lib/protocols/mysql.c index c1714da3c..3cf191744 100644 --- a/src/lib/protocols/mysql.c +++ b/src/lib/protocols/mysql.c @@ -40,7 +40,7 @@ void ndpi_search_mysql_tcp(struct ndpi_detection_module_struct *ndpi_struct, str // struct ndpi_id_struct *src=ndpi_struct->src; // struct ndpi_id_struct *dst=ndpi_struct->dst; - if (packet->payload_packet_len > 37 //min length + if (packet->payload_packet_len > 38 //min length && get_u_int16_t(packet->payload, 0) == packet->payload_packet_len - 4 //first 3 bytes are length && get_u_int8_t(packet->payload, 2) == 0x00 //3rd byte of packet length && get_u_int8_t(packet->payload, 3) == 0x00 //packet sequence number is 0 for startup packet |