(tgs_rep): call tgs_rep2 properly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9768 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1420,9 +1420,9 @@ tgs_rep2(KDC_REQ_BODY *b,
|
|||||||
|
|
||||||
ret = krb5_auth_getauthenticator(context, ac, &auth);
|
ret = krb5_auth_getauthenticator(context, ac, &auth);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
csec = auth->csec;
|
*csec = &auth->ctime;
|
||||||
auth->csec = NULL;
|
auth->ctime = NULL;
|
||||||
cusec = auth->cusec;
|
*cusec = &auth->cusec;
|
||||||
auth->cusec = NULL;
|
auth->cusec = NULL;
|
||||||
krb5_free_authenticator(context, &auth);
|
krb5_free_authenticator(context, &auth);
|
||||||
}
|
}
|
||||||
@@ -1697,7 +1697,8 @@ tgs_rep(KDC_REQ *req,
|
|||||||
kdc_log(0, "TGS-REQ from %s without PA-TGS-REQ", from);
|
kdc_log(0, "TGS-REQ from %s without PA-TGS-REQ", from);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
ret = tgs_rep2(&req->req_body, tgs_req, data, from, from_addr);
|
ret = tgs_rep2(&req->req_body, tgs_req, data, from, from_addr,
|
||||||
|
&csec, &cusec);
|
||||||
out:
|
out:
|
||||||
if(ret && data->data == NULL){
|
if(ret && data->data == NULL){
|
||||||
krb5_mk_error(context,
|
krb5_mk_error(context,
|
||||||
@@ -1706,7 +1707,7 @@ out:
|
|||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
ctime,
|
csec,
|
||||||
cusec,
|
cusec,
|
||||||
data);
|
data);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user