8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Authentication block, received by client plugin from engine, might contain trash

This commit is contained in:
Alex Peshkoff 2019-07-05 13:55:15 +03:00
parent 3a135e2367
commit 9e736e3f79
2 changed files with 4 additions and 1 deletions

View File

@ -8657,7 +8657,9 @@ static void cleanDpb(Firebird::ClumpletWriter& dpb, const ParametersSet* tags)
RmtAuthBlock::RmtAuthBlock(const Firebird::AuthReader::AuthBlock& aBlock)
: rdr(*getDefaultMemoryPool(), aBlock), info(*getDefaultMemoryPool())
: buffer(*getDefaultMemoryPool(), aBlock),
rdr(*getDefaultMemoryPool(), buffer),
info(*getDefaultMemoryPool())
{
FbLocalStatus st;
first(&st);

View File

@ -759,6 +759,7 @@ public:
FB_BOOLEAN first(Firebird::CheckStatusWrapper* status);
private:
Firebird::AuthReader::AuthBlock buffer;
Firebird::AuthReader rdr;
Firebird::AuthReader::Info info;