diff options
Diffstat (limited to 'modules/hash_bcrypt.cpp')
| -rw-r--r-- | modules/hash_bcrypt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hash_bcrypt.cpp b/modules/hash_bcrypt.cpp index 0dc2c8764..349042488 100644 --- a/modules/hash_bcrypt.cpp +++ b/modules/hash_bcrypt.cpp @@ -76,7 +76,7 @@ class BCryptProvider final : public Hash::Provider { public: - BCryptProvider(Module* mod) + BCryptProvider(const WeakModulePtr& mod) : Hash::Provider(mod, "bcrypt", 60) { } @@ -108,7 +108,7 @@ private: public: ModuleHashBCrypt() : Module(VF_VENDOR, "Allows other modules to generate bcrypt hashes.") - , bcryptalgo(this) + , bcryptalgo(weak_from_this()) { } |
