aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichele Campus <fci1908@gmail.com>2016-09-08 15:01:28 +0200
committerGitHub <noreply@github.com>2016-09-08 15:01:28 +0200
commit3cd64563496c32981bce3d511ba4a2b460a44111 (patch)
tree13f27ed369e9de520659fe02e576408e412a3537 /src
parent2ae4db34b03a4fb0fc919484b64f667530b609e9 (diff)
parentc10052764b658826ba4da73e11e6ff153d4bc916 (diff)
Merge pull request #263 from tianzhishuizhu/dev
payload min length
Diffstat (limited to 'src')
-rw-r--r--src/lib/protocols/mysql.c2
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