From 8a15f6e1cb89ce888f39c5cd7649e624d17031bf Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 5 Oct 2006 13:15:31 +0000 Subject: [PATCH] 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 --- src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.26.2