aboutsummaryrefslogtreecommitdiffstats
path: root/src/filters/secqueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filters/secqueue.cpp')
-rw-r--r--src/filters/secqueue.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/filters/secqueue.cpp b/src/filters/secqueue.cpp
index db0366bc8..bfe02b0d3 100644
--- a/src/filters/secqueue.cpp
+++ b/src/filters/secqueue.cpp
@@ -16,7 +16,9 @@ namespace Botan {
class SecureQueueNode
{
public:
- SecureQueueNode() { next = 0; start = end = 0; }
+ SecureQueueNode() : buffer(DEFAULT_BUFFERSIZE)
+ { next = 0; start = end = 0; }
+
~SecureQueueNode() { next = 0; start = end = 0; }
u32bit write(const byte input[], u32bit length)
@@ -48,7 +50,7 @@ class SecureQueueNode
private:
friend class SecureQueue;
SecureQueueNode* next;
- SecureVector<byte, DEFAULT_BUFFERSIZE> buffer;
+ SecureVector<byte> buffer;
u32bit start, end;
};