Fix search for OEM privileges
This fixes an off-by-one bug in the code which retrieves the OEM Privilege
names.
Tested: Yes, by patching in an OEM privilege and running the code.
Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net>
Change-Id: I3ea00fffbc62ec7f8c6bf8ff7e2947f19c92dfc8
diff --git a/redfish-core/include/privileges.hpp b/redfish-core/include/privileges.hpp
index e9a24f7..2fa979c 100644
--- a/redfish-core/include/privileges.hpp
+++ b/redfish-core/include/privileges.hpp
@@ -155,7 +155,7 @@
size_t endIndex = basePrivilegeCount;
if (type == PrivilegeType::OEM)
{
- searchIndex = basePrivilegeCount - 1;
+ searchIndex = basePrivilegeCount;
endIndex = privilegeNames.size();
}