diff options
author | unknown <guilhem@mysql.com> | 2005-01-10 14:13:41 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2005-01-10 14:13:41 +0100 |
commit | 7a35921bff74e4babc98522dda7c6919983efb67 (patch) | |
tree | b561ac68b085909ca7a1c8d5646e7ac2dd67ff17 /sql | |
parent | 815f62223aa9892b19916724ca76514cb1d899b2 (diff) | |
parent | d8d9f79e09dfe822586742a62928ce37c44aaa90 (diff) | |
download | mariadb-git-7a35921bff74e4babc98522dda7c6919983efb67.tar.gz |
Merge mysql.com:/home/mysql_src/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.1-clean
Build-tools/Bootstrap:
Auto merged
sql/net_serv.cc:
Auto merged
Diffstat (limited to 'sql')
-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 1e34ed90fee..ca82c49b62d 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -251,6 +251,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. |