aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/kdf/pbkdf1/pbkdf1.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kdf/pbkdf1/pbkdf1.h b/src/kdf/pbkdf1/pbkdf1.h
index e5fd66db8..ee76e5b15 100644
--- a/src/kdf/pbkdf1/pbkdf1.h
+++ b/src/kdf/pbkdf1/pbkdf1.h
@@ -21,7 +21,9 @@ class BOTAN_DLL PKCS5_PBKDF1 : public S2K
S2K* clone() const;
PKCS5_PBKDF1(HashFunction* hash_in) : hash(hash_in) {}
- PKCS5_PBKDF1(const PKCS5_PBKDF1& other) : hash(other.hash->clone()) {}
+ PKCS5_PBKDF1(const PKCS5_PBKDF1& other) :
+ S2K(), hash(other.hash->clone()) {}
+
~PKCS5_PBKDF1() { delete hash; }
private:
OctetString derive(u32bit, const std::string&,