From 0d48c716403f0870f89a48a763411b30eab2a1e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Eeden?= Date: Fri, 12 Jan 2018 08:24:25 +0100 Subject: [PATCH] Fix for Bug #89139 --- sql-common/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-common/client.c b/sql-common/client.c index 11c23b6fe3e..1def6563de3 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -1333,7 +1333,7 @@ cli_advanced_command(MYSQL *mysql, enum enum_server_command command, result=0; if (!skip_check) { - result= ((mysql->packet_length= cli_safe_read_with_ok(mysql, 1, NULL)) == + result= ((mysql->packet_length= cli_safe_read_with_ok(mysql, command == COM_PING ? 0 : 1, NULL)) == packet_error ? 1 : 0); #if defined(CLIENT_PROTOCOL_TRACING)