(calling_error, routine_error): right shift the code to make it

possible to index into the arrays


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6725 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-08-04 17:17:34 +00:00
parent 1b8b5cde97
commit eff8df852d
2 changed files with 8 additions and 0 deletions

View File

@@ -50,6 +50,8 @@ calling_error(OM_uint32 v)
"A parameter was malformed"
};
v >>= GSS_C_CALLING_ERROR_OFFSET;
if (v == 0)
return "";
else if (v >= sizeof(msgs)/sizeof(*msgs))
@@ -84,6 +86,8 @@ routine_error(OM_uint32 v)
"The provided name was not a mechanism name.",
};
v >>= GSS_C_ROUTINE_ERROR_OFFSET;
if (v == 0)
return "";
else if (v >= sizeof(msgs)/sizeof(*msgs))