From 6d1265ade1852c3e2e23944def18113b4d8f3a8b Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 23 Nov 2016 13:53:06 +0200 Subject: [PATCH] Length of a packet requires 32 bit. --- include/maxscale/protocol/mysql.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/maxscale/protocol/mysql.h b/include/maxscale/protocol/mysql.h index 1f91d4730..01fdd1615 100644 --- a/include/maxscale/protocol/mysql.h +++ b/include/maxscale/protocol/mysql.h @@ -299,7 +299,7 @@ static inline uint8_t MYSQL_GET_PACKET_NO(const uint8_t* header) return header[3]; } -static inline uint8_t MYSQL_GET_PACKET_LEN(const uint8_t* header) +static inline uint32_t MYSQL_GET_PACKET_LEN(const uint8_t* header) { return gw_mysql_get_byte3(header); }