From d3393e8084c4285c1a52c83329fd1caa01e5e030 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 1 Jul 2021 21:18:12 -0700 Subject: [PATCH] :bug: fixed massive send without b_name existing --- src/bank.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bank.cpp b/src/bank.cpp index c2bd211..e559057 100644 --- a/src/bank.cpp +++ b/src/bank.cpp @@ -74,7 +74,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name return ErrorResponse::InvalidRequest; } //as first modify_if checks a_name and grabs unique lock - if (!Contains(b_name)) + if (Contains(b_name) != true) { return ErrorResponse::UserNotFound; } @@ -92,7 +92,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name } else if (a.password != XXH3_64bits(attempt.data(), attempt.size())) { - state = ErrorResponse::WrongPassword; } else