summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-03-02 06:53:07 +0100
committerSergei Golubchik <serg@mariadb.org>2017-03-10 18:21:23 +0100
commit1c8d2121ab0e9ca0d8a8fccdd85da1072ef30815 (patch)
tree69bde8711a55c4c3350389f122f25374dff382a2 /sql-common
parent5fa04aae9ec94428a68ef4f6f681564111933c11 (diff)
downloadmariadb-git-1c8d2121ab0e9ca0d8a8fccdd85da1072ef30815.tar.gz
don't do vio_description(NULL)
this fixes the crash of innodb.innodb-blob --ps-protocol
Diffstat (limited to 'sql-common')
-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 0430946b2ff..86c7dea5a58 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -583,7 +583,7 @@ restart:
if (len == packet_error || len == 0)
{
DBUG_PRINT("error",("Wrong connection or packet. fd: %s len: %lu",
- vio_description(net->vio),len));
+ net->vio ? vio_description(net->vio) : NULL, len));
#ifdef MYSQL_SERVER
if (net->vio && (net->last_errno == ER_NET_READ_INTERRUPTED))
return (packet_error);