diff options
author | lloyd <[email protected]> | 2008-09-30 16:44:16 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-30 16:44:16 +0000 |
commit | a97f2adb2fbfed37e1bf7706f57d22983936ba4d (patch) | |
tree | afe0ff4005cd1157e07b05f6055e99519c766d3d | |
parent | eaa047cda3726b1207061ccc4ed707dddb01e3cc (diff) |
Fix warning in PBKDF1 copy constructor
-rw-r--r-- | src/kdf/pbkdf1/pbkdf1.h | 4 |
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&, |