diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_spanningtree/hmac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index 6dceafe22..75f32cb53 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -130,9 +130,9 @@ std::string TreeSocket::RandString(unsigned int ilength) bool TreeSocket::ComparePass(const std::string &ours, const std::string &theirs) { - if (Utils->ChallengeResponse) + if (Utils->ChallengeResponse && !ourchallenge.empty() && !theirchallenge.empty()) { - std::string our_hmac = this->MakePass(ours, this->GetOurChallenge()); + std::string our_hmac = this->MakePass(ours, ourchallenge); /* Straight string compare of hashes */ return our_hmac == theirs; |