summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-10 08:14:59 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-10 15:20:33 +1100
commit292b86394f1083dfbae34cdbf16c614d909797dc (patch)
treec927187845dd402055d4532a27df076661775674
parent209d3c0b7187f2c4e6be5a972206094cdf70224f (diff)
downloadsamba-292b86394f1083dfbae34cdbf16c614d909797dc.tar.gz
samba-292b86394f1083dfbae34cdbf16c614d909797dc.tar.bz2
samba-292b86394f1083dfbae34cdbf16c614d909797dc.zip
credentials: Show returned error_string in debug message
-rw-r--r--auth/credentials/credentials_krb5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c
index 1e5600c2b1..2892c4f1df 100644
--- a/auth/credentials/credentials_krb5.c
+++ b/auth/credentials/credentials_krb5.c
@@ -483,9 +483,9 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
&ccache, error_string);
if (ret) {
if (cli_credentials_get_kerberos_state(cred) == CRED_MUST_USE_KERBEROS) {
- DEBUG(1, ("Failed to get kerberos credentials (kerberos required): %s\n", error_message(ret)));
+ DEBUG(1, ("Failed to get kerberos credentials (kerberos required): %s\n", *error_string));
} else {
- DEBUG(4, ("Failed to get kerberos credentials: %s\n", error_message(ret)));
+ DEBUG(4, ("Failed to get kerberos credentials: %s\n", *error_string));
}
return ret;
}