1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +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:
Sinisa@sinisa.nasamreza.org
2003-01-02 16:21:22 +02:00
parent 5c0bd57b8f
commit 66208fe9ae
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;