fix NULL e_text bug
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3611 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -215,6 +215,10 @@ as_rep(KDC_REQ *req,
|
|||||||
|
|
||||||
ret = hdb_etype2key(context, client, enc_data.etype, &pa_key);
|
ret = hdb_etype2key(context, client, enc_data.etype, &pa_key);
|
||||||
if(ret){
|
if(ret){
|
||||||
|
e_text = "No key matches pa-data";
|
||||||
|
ret = KRB5KDC_ERR_PREAUTH_FAILED;
|
||||||
|
kdc_log(5, "No client key matching pa-data -- %s",
|
||||||
|
client_name);
|
||||||
free_EncryptedData(&enc_data);
|
free_EncryptedData(&enc_data);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -278,7 +282,7 @@ as_rep(KDC_REQ *req,
|
|||||||
goto use_pa;
|
goto use_pa;
|
||||||
/* We come here if we found a pa-enc-timestamp, but if there
|
/* We come here if we found a pa-enc-timestamp, but if there
|
||||||
was some problem with it, other than too large skew */
|
was some problem with it, other than too large skew */
|
||||||
if(et.flags.pre_authent == 0){
|
if(found_pa && et.flags.pre_authent == 0){
|
||||||
kdc_log(0, "%s -- %s", e_text, client_name);
|
kdc_log(0, "%s -- %s", e_text, client_name);
|
||||||
e_text = NULL;
|
e_text = NULL;
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user