From 8c236c1cdc45b2ef8c984463f948a431ae68cfea Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 18 Jan 2017 16:10:25 +0200 Subject: [PATCH] Define ComEOF packet length in terms of MYSQL_EOF_PACKET_LEN --- server/modules/filter/masking/mysql.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/filter/masking/mysql.hh b/server/modules/filter/masking/mysql.hh index 34fb8337e..d54227094 100644 --- a/server/modules/filter/masking/mysql.hh +++ b/server/modules/filter/masking/mysql.hh @@ -596,8 +596,8 @@ class ComEOF : public ComResponse public: enum { - PAYLOAD_LEN = 5, - PACKET_LEN = MYSQL_HEADER_LEN + PAYLOAD_LEN + PACKET_LEN = MYSQL_EOF_PACKET_LEN, + PAYLOAD_LEN = MYSQL_EOF_PACKET_LEN - MYSQL_HEADER_LEN }; ComEOF(GWBUF* pPacket)