(_kdc_as_rep): preserve the error code in the ENC-TS case.
From: Andrew Bartlett <abartlet@samba.org> git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15861 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -930,17 +930,19 @@ _kdc_as_rep(krb5_context context,
|
|||||||
&ts_data);
|
&ts_data);
|
||||||
krb5_crypto_destroy(context, crypto);
|
krb5_crypto_destroy(context, crypto);
|
||||||
if(ret){
|
if(ret){
|
||||||
ret = krb5_enctype_to_string(context,
|
krb5_error_code ret2;
|
||||||
|
ret2 = krb5_enctype_to_string(context,
|
||||||
pa_key->key.keytype, &str);
|
pa_key->key.keytype, &str);
|
||||||
if (ret)
|
if (ret2)
|
||||||
str = NULL;
|
str = NULL;
|
||||||
kdc_log(context, config, 5,
|
kdc_log(context, config, 5,
|
||||||
"Failed to decrypt PA-DATA -- %s "
|
"Failed to decrypt PA-DATA -- %s "
|
||||||
"(enctype %s) error %d",
|
"(enctype %s) error %s",
|
||||||
client_name, str ? str : "unknown enctype", ret);
|
client_name,
|
||||||
|
str ? str : "unknown enctype",
|
||||||
|
krb5_get_err_text(context, ret));
|
||||||
free(str);
|
free(str);
|
||||||
|
|
||||||
|
|
||||||
if(hdb_next_enctype2key(context, client,
|
if(hdb_next_enctype2key(context, client,
|
||||||
enc_data.etype, &pa_key) == 0)
|
enc_data.etype, &pa_key) == 0)
|
||||||
goto try_next_key;
|
goto try_next_key;
|
||||||
|
Reference in New Issue
Block a user