mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Handle zero-length strings even if we have our buffer full.
This commit is contained in:
parent
d2a47766f3
commit
00c9d548a6
@ -4382,8 +4382,13 @@ ISC_STATUS rem_port::send_response( PACKET* sendL,
|
||||
}
|
||||
else
|
||||
{
|
||||
// See if we can honor zero length strings, else use an error msg
|
||||
TEXT** sp = (TEXT**) v;
|
||||
if (!*status_vector) // this is the length
|
||||
*sp++ = const_cast<char*>("");
|
||||
else
|
||||
*sp++ = const_cast<char*>("Not enough buffer for message");
|
||||
|
||||
v = (ISC_STATUS*) sp;
|
||||
status_vector += 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user