summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorSujatha <sujatha.sivakumar@mariadb.com>2020-09-28 17:27:42 +0530
committerSujatha <sujatha.sivakumar@mariadb.com>2020-09-28 17:27:42 +0530
commit6cbbd6bd96a8b5c97ec4d0b687aac29fb0f63a6a (patch)
tree93d54c9fc71e2e76d1695cd5189bb8298c29d2e9 /sql-common
parenta6987d9fb921a6638bb1a2397b89ca606fad6f49 (diff)
parent842616532a76cd078ba1d526ae4b85d3ad4be069 (diff)
downloadmariadb-git-6cbbd6bd96a8b5c97ec4d0b687aac29fb0f63a6a.tar.gz
Merge branch '10.2' into 10.3
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 66c68e5952d..4a7a5439f48 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1,5 +1,5 @@
/* Copyright (c) 2003, 2016, Oracle and/or its affiliates.
- Copyright (c) 2009, 2017, MariaDB
+ Copyright (c) 2009, 2020, MariaDB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -3288,7 +3288,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
/* New protocol with 16 bytes to describe server characteristics */
mysql->server_language=end[2];
mysql->server_status=uint2korr(end+3);
- mysql->server_capabilities|= uint2korr(end+5) << 16;
+ mysql->server_capabilities|= ((unsigned) uint2korr(end+5)) << 16;
pkt_scramble_len= end[7];
if (pkt_scramble_len < 0)
{