summaryrefslogtreecommitdiff
path: root/sql-common/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sql-common/client.c')
-rw-r--r--sql-common/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 72760560903..d5c03f6761d 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -764,7 +764,7 @@ cli_safe_read(MYSQL *mysql)
restart:
if (net->vio != 0)
- len=my_net_read(net);
+ len= my_net_read_packet(net, 0);
if (len == packet_error || len == 0)
{