8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Fixed CORE-5157: Server goes into infinite loop when data is sent from client to the service in small packets

This commit is contained in:
Alexander Peshkov 2016-03-18 20:17:36 +03:00
parent 1c548a533c
commit 985ee4bbbc

View File

@ -75,6 +75,8 @@ const int MAX_HEADER_SIZE = 512;
static inline int get(BurpGlobals* tdgbl)
{
if (tdgbl->mvol_io_cnt <= 0)
MVOL_read(NULL, NULL);
return (--tdgbl->mvol_io_cnt >= 0 ? *tdgbl->mvol_io_ptr++ : 255);
}