(krb5_get_err_text): if neither of com_right nor strerror finds the

error-code, return Unknown error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14135 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-08-20 07:54:58 +00:00
parent 33700d850a
commit 8763264587

View File

@@ -514,6 +514,8 @@ krb5_get_err_text(krb5_context context, krb5_error_code code)
p = com_right(context->et_list, code);
if(p == NULL)
p = strerror(code);
if (p == NULL)
p = "Unknown error";
return p;
}