diff options
Diffstat (limited to 'redfish-core/lib/account_service.hpp')
-rw-r--r-- | redfish-core/lib/account_service.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redfish-core/lib/account_service.hpp b/redfish-core/lib/account_service.hpp index df7279e281..232f51c178 100644 --- a/redfish-core/lib/account_service.hpp +++ b/redfish-core/lib/account_service.hpp @@ -1142,7 +1142,7 @@ inline void updateUserProperties(std::shared_ptr<bmcweb::AsyncResp> asyncResp, [dbusObjectPath, username, password(std::move(password)), roleId(std::move(roleId)), enabled, locked, asyncResp{std::move(asyncResp)}](int rc) { - if (!rc) + if (rc <= 0) { messages::resourceNotFound( asyncResp->res, "#ManagerAccount.v1_4_0.ManagerAccount", @@ -1727,7 +1727,8 @@ inline void requestAccountServiceRoutes(App& app) const std::pair<sdbusplus::message::object_path, dbus::utility::DBusInteracesMap>& user) { - return !accountName.compare(user.first.filename()); + return accountName.compare(user.first.filename()) == + 0; }); if (userIt == users.end()) |