return Success instead of unknown error: 0

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24246 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-01-11 21:43:02 +00:00
parent c25af51232
commit b49b5696f6

View File

@@ -172,6 +172,9 @@ krb5_get_error_message(krb5_context context, krb5_error_code code)
} }
HEIMDAL_MUTEX_unlock(context->mutex); HEIMDAL_MUTEX_unlock(context->mutex);
if (code == 0)
return strdup("Success");
cstr = krb5_get_err_text(context, code); cstr = krb5_get_err_text(context, code);
if (cstr) if (cstr)
return strdup(cstr); return strdup(cstr);