aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 2be446c4..87a299da 100644
--- a/driver.c
+++ b/driver.c
@@ -1243,11 +1243,18 @@ const char *canonical; /* server name */
krb5_auth_con_free(context, auth_context);
if (retval) {
+#ifdef HEIMDAL
+ if (err_ret && err_ret->e_text) {
+ report(stderr, _("krb5_sendauth: %s [server says '%*s'] \n"),
+ error_message(retval),
+ err_ret->e_text);
+#else
if (err_ret && err_ret->text.length) {
report(stderr, _("krb5_sendauth: %s [server says '%*s'] \n"),
error_message(retval),
err_ret->text.length,
err_ret->text.data);
+#endif
krb5_free_error(context, err_ret);
} else
report(stderr, "krb5_sendauth: %s\n", error_message(retval));