diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2006-10-05 13:15:31 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2006-10-05 13:15:31 +0000 |
| commit | 8a15f6e1cb89ce888f39c5cd7649e624d17031bf (patch) | |
| tree | 8d57886e0e8f6f832bfe6d4c0d3a2352a544fb38 /src/plugins | |
| parent | 57c0694879f71b051c171ae69b5c22357f91ed74 (diff) | |
| download | krb5-8a15f6e1cb89ce888f39c5cd7649e624d17031bf.tar.gz krb5-8a15f6e1cb89ce888f39c5cd7649e624d17031bf.tar.xz krb5-8a15f6e1cb89ce888f39c5cd7649e624d17031bf.zip | |
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
Diffstat (limited to 'src/plugins')
| -rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c index 7047d1ee6e..5f0c30fba1 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; |
