diff options
| author | 2018-12-12 20:34:46 +0000 | |
|---|---|---|
| committer | 2018-12-12 21:43:24 +0000 | |
| commit | 0f7cfd46ef2d277f5f82e34a2852c75212d75261 (patch) | |
| tree | 73445b54ad2ce50ae75999ec9f939ff1097b057a /src/modules/m_pbkdf2.cpp | |
| parent | Fix not rejecting invalid durations in DCCALLOW. (diff) | |
| download | inspircd++-0f7cfd46ef2d277f5f82e34a2852c75212d75261.tar.gz inspircd++-0f7cfd46ef2d277f5f82e34a2852c75212d75261.tar.bz2 inspircd++-0f7cfd46ef2d277f5f82e34a2852c75212d75261.zip | |
Fix conversion issues by replacing ConvToInt with ConvToNum<T>.
The former was a thin wrapper around atol and brought with it all
of the weird parsing logic of atol which is almost never what is
actually wanted. It also almost never returned the numeric type
which is actually wanted which can cause weird issues when casting.
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 89bc39ef4..86530c5dd 100644 --- a/src/modules/m_pbkdf2.cpp +++ b/src/modules/m_pbkdf2.cpp @@ -43,7 +43,7 @@ class PBKDF2Hash std::string tok; ss.GetToken(tok); - this->iterations = ConvToInt(tok); + this->iterations = ConvToNum<unsigned int>(tok); ss.GetToken(tok); this->hash = Base64ToBin(tok); |
