- if (!ComparePass(this->MakePass(x->RecvPass, this->GetOurChallenge(), password)) ||
- x->RecvPass != password && !this->GetTheirChallenge().empty())
+ if (!ComparePass(this->MakePass(x->RecvPass, this->GetOurChallenge()), password) &&
+ (x->RecvPass != password && this->GetTheirChallenge().empty()))
+ {
+ this->Instance->SNO->WriteToSnoMask('l',"Invalid password on link: %s", x->Name.c_str());