Improve the error message.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22533 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-01-27 12:03:22 +00:00
parent 34faa9fe6e
commit 590105f28d

View File

@@ -58,7 +58,7 @@ gssapi_err(OM_uint32 maj_stat, OM_uint32 min_stat, gss_OID mech)
disp_maj_stat = gss_display_status(&disp_min_stat, min_stat,
GSS_C_MECH_CODE,
mech, &msg_ctx, &min_error_message);
asprintf(&ret, "gss-code: %lu %.*s\nmech-code: %lu %.*s",
asprintf(&ret, "gss-code: %lu %.*s -- mech-code: %lu %.*s",
(unsigned long)maj_stat,
(int)maj_error_message.length,
(char *)maj_error_message.value,