From: Ken Raeburn Date: Thu, 5 Oct 2006 13:15:31 +0000 (+0000) Subject: set a more meaningful error message in asn1 decode failure case X-Git-Tag: krb5-1.6-alpha1~108 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8a15f6e1cb89ce888f39c5cd7649e624d17031bf;p=krb5.git set a more meaningful error message in asn1 decode failure case git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18645 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c index 7047d1ee6..5f0c30fba 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c @@ -1044,7 +1044,10 @@ krb5_decode_krbsecretkey(context, entries, bvalues, userinfo_tl_data) &mkvno); if (st != 0) { + char *msg = error_message(st); st = -1; /* Something more appropriate ? */ + krb5_set_error_message (context, st, + "unable to decode stored principal key data (%s)", msg); goto cleanup; } noofkeys += n_kd;