diff options
author | guilhem@mysql.com <> | 2005-01-10 15:15:49 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2005-01-10 15:15:49 +0100 |
commit | b5a44aebbd8e277643c44241068a215fe4756cfa (patch) | |
tree | 8fd997ff7ccc716a48a2f68d64021a4e5f5f9328 /sql/net_serv.cc | |
parent | 10f41d7cc402a28a8e4db6d87c9ddbad7e5af43d (diff) | |
parent | b9926d71c09d216ae34a6a77ecc3e0b5fbbd4f11 (diff) | |
download | mariadb-git-b5a44aebbd8e277643c44241068a215fe4756cfa.tar.gz |
Merge mysql.com:/home/mysql_src/mysql-4.1-clean
into mysql.com:/home/mysql_src/mysql-5.0-clean
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 3bec00a5177..55f56645f82 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -255,6 +255,8 @@ my_bool my_net_write(NET *net,const char *packet,ulong len) { uchar buff[NET_HEADER_SIZE]; + if (unlikely(!net->vio)) // nowhere to write + return 0; /* Big packets are handled by splitting them in packets of MAX_PACKET_LENGTH length. The last packet is always a packet that is < MAX_PACKET_LENGTH. |