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:
Johan Danielsson
1997-10-14 22:22:37 +00:00
parent 4df9a6de0f
commit a3b72e2213

View File

@@ -215,6 +215,10 @@ as_rep(KDC_REQ *req,
ret = hdb_etype2key(context, client, enc_data.etype, &pa_key);
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);
continue;
}
@@ -278,7 +282,7 @@ as_rep(KDC_REQ *req,
goto use_pa;
/* We come here if we found a pa-enc-timestamp, but if there
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);
e_text = NULL;
goto out;