Provide message for GSS_S_COMPLETE.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21247 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -85,7 +85,7 @@ static const char *
|
|||||||
routine_error(OM_uint32 v)
|
routine_error(OM_uint32 v)
|
||||||
{
|
{
|
||||||
static const char *msgs[] = {
|
static const char *msgs[] = {
|
||||||
NULL, /* 0 */
|
"Function completed successfully", /* 0 */
|
||||||
"An unsupported mechanism was requested",
|
"An unsupported mechanism was requested",
|
||||||
"An invalid name was supplied",
|
"An invalid name was supplied",
|
||||||
"A supplied name was of an unsupported type",
|
"A supplied name was of an unsupported type",
|
||||||
@@ -109,9 +109,7 @@ routine_error(OM_uint32 v)
|
|||||||
|
|
||||||
v >>= GSS_C_ROUTINE_ERROR_OFFSET;
|
v >>= GSS_C_ROUTINE_ERROR_OFFSET;
|
||||||
|
|
||||||
if (v == 0)
|
if (v >= sizeof(msgs)/sizeof(*msgs))
|
||||||
return "";
|
|
||||||
else if (v >= sizeof(msgs)/sizeof(*msgs))
|
|
||||||
return "unknown routine error";
|
return "unknown routine error";
|
||||||
else
|
else
|
||||||
return msgs[v];
|
return msgs[v];
|
||||||
|
Reference in New Issue
Block a user