set a more meaningful error message in asn1 decode failure case
authorKen Raeburn <raeburn@mit.edu>
Thu, 5 Oct 2006 13:15:31 +0000 (13:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 5 Oct 2006 13:15:31 +0000 (13:15 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18645 dc483132-0cff-0310-8789-dd5450dbe970

src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c

index 7047d1ee6e5ba0f07826cff2c479dc1209f746b1..5f0c30fba173ba2933d5ea16ccd281e8f1f9696a 100644 (file)
@@ -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;