don't do vio_description(NULL)

this fixes the crash of innodb.innodb-blob --ps-protocol
This commit is contained in:
Sergei Golubchik 2017-03-02 06:53:07 +01:00
parent 5fa04aae9e
commit 1c8d2121ab

View File

@ -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);