diff options
| author | 2020-07-15 11:00:24 +0100 | |
|---|---|---|
| committer | 2020-07-15 11:00:24 +0100 | |
| commit | 93ae431955a90e6e026135f611374c17d780c8f2 (patch) | |
| tree | 6a05be8c3277fdae1a6569fe3445d0fd6c9006ce /src/modules/m_pbkdf2.cpp | |
| parent | Upgrade GitHub Actions to use Ubuntu 20.04. (diff) | |
| parent | Various improvements to the build system. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_pbkdf2.cpp')
| -rw-r--r-- | src/modules/m_pbkdf2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_pbkdf2.cpp b/src/modules/m_pbkdf2.cpp index d8b07f28b..e990d61fc 100644 --- a/src/modules/m_pbkdf2.cpp +++ b/src/modules/m_pbkdf2.cpp @@ -126,7 +126,7 @@ class PBKDF2Provider : public HashProvider return false; std::string cmp = PBKDF2(input, hs.salt, hs.iterations, hs.length); - return (cmp == hs.hash); + return InspIRCd::TimingSafeCompare(cmp, hs.hash); } std::string ToPrintable(const std::string& raw) override |
