From 43c53e2f79bccd356e4d03b98568aaed6ec46431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 13 Nov 2020 15:24:51 +0200 Subject: [PATCH] MXS-3297: Fix reading of extended MariaDB capabilities The byte offset didn't take the size of the charset into account. --- 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 46b17686b..b5baedf00 100644 --- a/include/maxscale/protocol/mysql.h +++ b/include/maxscale/protocol/mysql.h @@ -61,7 +61,7 @@ MXS_BEGIN_DECLS #define MYSQL_CHARSET_OFFSET 12 #define MYSQL_CLIENT_CAP_OFFSET 4 #define MYSQL_CLIENT_CAP_SIZE 4 -#define MARIADB_CAP_OFFSET MYSQL_CHARSET_OFFSET + 19 +#define MARIADB_CAP_OFFSET MYSQL_CHARSET_OFFSET + 20 #define GW_MYSQL_PROTOCOL_VERSION 10 // version is 10 #define GW_MYSQL_HANDSHAKE_FILLER 0x00