aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/compression/comp_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/compression/comp_util.h')
-rw-r--r--src/lib/compression/comp_util.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/compression/comp_util.h b/src/lib/compression/comp_util.h
index 92989e518..6e1ee1671 100644
--- a/src/lib/compression/comp_util.h
+++ b/src/lib/compression/comp_util.h
@@ -9,7 +9,6 @@
#define BOTAN_COMPRESSION_UTILS_H__
#include <botan/compression.h>
-#include <cstring>
#include <memory>
#include <unordered_map>
@@ -64,13 +63,13 @@ class Zlib_Style_Stream : public Compression_Stream
Zlib_Style_Stream()
{
- std::memset(&m_stream, 0, sizeof(stream_t));
+ clear_mem(&m_stream, 1);
m_allocs.reset(new Compression_Alloc_Info);
}
~Zlib_Style_Stream()
{
- std::memset(&m_stream, 0, sizeof(stream_t));
+ clear_mem(&m_stream, 1);
m_allocs.reset();
}