diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-04-12 01:01:18 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-04-12 01:01:18 +0200 |
commit | ce926c90accc6ca36c62f0b954e651d89db66da8 (patch) | |
tree | 737c9571a90e6e1f07be30d8bdc64c2f06d6fbf3 /sql-common | |
parent | 5ae72bb73cceafe5062be3827dbe3b4f488a7a73 (diff) | |
parent | ea4a417a8d456e8e09b6b4306f22c7c20b3e594c (diff) | |
download | mariadb-git-ce926c90accc6ca36c62f0b954e651d89db66da8.tar.gz |
5.3 merge
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 3119236ef2d..976c09d7a70 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -3414,6 +3414,12 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, strmov(mysql->server_version,(char*) net->read_pos+1); mysql->port=port; + /* remove the rpl hack from the version string, see RPL_VERSION_HACK comment */ + if (mysql->server_capabilities & CLIENT_PLUGIN_AUTH && + strncmp(mysql->server_version, RPL_VERSION_HACK, + sizeof(RPL_VERSION_HACK) - 1) == 0) + mysql->server_version+= sizeof(RPL_VERSION_HACK) - 1; + if (pkt_end >= end + SCRAMBLE_LENGTH - SCRAMBLE_LENGTH_323 + 1) { /* |