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

Put isc_info_end into response buffer despite of its presence in info items.

This commit is contained in:
Vlad Khorsun 2024-11-08 11:47:20 +02:00
parent 4eefa4b17e
commit a645790176

View File

@ -870,6 +870,9 @@ bool RBlobInfo::getLocalInfo(unsigned int itemsLength, const unsigned char* item
for (auto item = items; p && (item < items + itemsLength); item++)
{
if (*item == isc_info_end)
break;
switch (*item)
{
case isc_info_blob_num_segments:
@ -888,17 +891,15 @@ bool RBlobInfo::getLocalInfo(unsigned int itemsLength, const unsigned char* item
p = fb_utils::putInfoItemInt(*item, blob_type, p, end);
break;
case isc_info_end:
if (p < end)
*p++ = isc_info_end;
break;
default:
// unknown info item, let remote server handle it
return false;
}
}
if (p < end)
*p++ = isc_info_end;
return true;
}