(krb5_get_in_tkt): only print error text is there's one

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2359 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-16 03:11:47 +00:00
parent 8f2d06bc59
commit 5e0a2a6d3b

View File

@@ -310,7 +310,9 @@ krb5_get_in_tkt(krb5_context context,
krb5_data_free(&resp);
if (ret2 == 0) {
/* XXX */
fprintf (stderr, "get_in_tkt: KRB_ERROR: %s\n", *(error.e_text));
if (error.e_text)
fprintf (stderr,
"get_in_tkt: KRB_ERROR: %s\n", *(error.e_text));
return error.error_code;
}
return ret;