1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-30 11:22:14 +03:00

Fixing some bugs in client - server protocol and adding a feature

that connection does not close in the case when client sends a 
buffer larger then max_allowed_packet.
This commit is contained in:
unknown
2003-01-02 16:21:22 +02:00
parent 8753e655d9
commit 41dc1eaa4f
2 changed files with 24 additions and 3 deletions

View File

@@ -884,6 +884,12 @@ bool do_command(THD *thd)
vio_description(net->vio) ));
return TRUE;
}
else if (!packet_length)
{
send_error(net,net->last_errno,NullS);
net->error=0;
DBUG_RETURN(FALSE);
}
else
{
packet=(char*) net->read_pos;