Skip to content

Commit 16d1f20

Browse files
committed
Fix incorrect pool usage
1 parent 76b128c commit 16d1f20

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
@@ -700,7 +700,9 @@ class InternalCryptKey FB_FINAL :
700700
{
701701
public:
702702
InternalCryptKey()
703-
: keyName(getPool())
703+
: encrypt(getPool()),
704+
decrypt(getPool()),
705+
keyName(getPool())
704706
{ }
705707

706708
// ICryptKey implementation
@@ -713,8 +715,8 @@ class InternalCryptKey FB_FINAL :
713715
class Key : public Firebird::UCharBuffer
714716
{
715717
public:
716-
Key()
717-
: Firebird::UCharBuffer(getPool())
718+
Key(MemoryPool& pool)
719+
: Firebird::UCharBuffer(pool)
718720
{ }
719721

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

0 commit comments

Comments
 (0)