Skip to content

Commit a43c1fa

Browse files
committed
Fix incorrect pool usage
1 parent 4a759a0 commit a43c1fa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/remote/remote.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,9 @@ class InternalCryptKey FB_FINAL :
661661
{
662662
public:
663663
InternalCryptKey()
664-
: keyName(getPool())
664+
: encrypt(getPool()),
665+
decrypt(getPool()),
666+
keyName(getPool())
665667
{ }
666668

667669
// ICryptKey implementation
@@ -674,8 +676,8 @@ class InternalCryptKey FB_FINAL :
674676
class Key : public Firebird::UCharBuffer
675677
{
676678
public:
677-
Key()
678-
: Firebird::UCharBuffer(getPool())
679+
Key(MemoryPool& pool)
680+
: Firebird::UCharBuffer(pool)
679681
{ }
680682

681683
void set(unsigned keyLength, const void* key)

0 commit comments

Comments
 (0)