Skip to content

Commit 1c8d212

Browse files
committed
don't do vio_description(NULL)
this fixes the crash of innodb.innodb-blob --ps-protocol
1 parent 5fa04aa commit 1c8d212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql-common/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ cli_safe_read(MYSQL *mysql)
583583
if (len == packet_error || len == 0)
584584
{
585585
DBUG_PRINT("error",("Wrong connection or packet. fd: %s len: %lu",
586-
vio_description(net->vio),len));
586+
net->vio ? vio_description(net->vio) : NULL, len));
587587
#ifdef MYSQL_SERVER
588588
if (net->vio && (net->last_errno == ER_NET_READ_INTERRUPTED))
589589
return (packet_error);

0 commit comments

Comments
 (0)