(init_tgs_req): if subkey not avaible, use session key for authorization-data

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13972 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-06-21 21:39:27 +00:00
parent 8a986d309a
commit abe49e97aa

View File

@@ -255,7 +255,8 @@ init_tgs_req (krb5_context context,
}
}
ret = set_auth_data (context, &t->req_body, &in_creds->authdata, key);
ret = set_auth_data (context, &t->req_body, &in_creds->authdata,
key ? key : &krbtgt->session);
if (ret) {
if (key)
krb5_free_keyblock (context, key);