Save the session ticket key when we know everything is fine and the
ticket was valid. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23415 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -389,11 +389,6 @@ krb5_verify_ap_req2(krb5_context context,
|
||||
t->ticket.crealm);
|
||||
if (ret) goto out;
|
||||
|
||||
/* save key */
|
||||
|
||||
ret = krb5_copy_keyblock(context, &t->ticket.key, &ac->keyblock);
|
||||
if (ret) goto out;
|
||||
|
||||
ret = decrypt_authenticator (context,
|
||||
&t->ticket.key,
|
||||
&ap_req->authenticator,
|
||||
@@ -479,6 +474,10 @@ krb5_verify_ap_req2(krb5_context context,
|
||||
}
|
||||
}
|
||||
|
||||
/* save key */
|
||||
ret = krb5_copy_keyblock(context, &t->ticket.key, &ac->keyblock);
|
||||
if (ret) goto out;
|
||||
|
||||
if (ap_req_options) {
|
||||
*ap_req_options = 0;
|
||||
if (ac->keytype != ETYPE_NULL)
|
||||
|
Reference in New Issue
Block a user