kdc: make error code available to audit function

Set r->ret in the request before calling the HDB audit method.
This commit is contained in:
Luke Howard
2022-01-01 17:11:18 +11:00
parent cc0874d410
commit 1e1c5dbbfc
2 changed files with 5 additions and 2 deletions

View File

@@ -2769,6 +2769,7 @@ _kdc_as_rep(astgs_request_t r)
}
out:
r->ret = ret;
notify_hdb_audit(r);
/*
@@ -2779,7 +2780,7 @@ out:
r->rep.padata,
r->armor_crypto,
&req->req_body,
r->ret = ret,
r->ret,
r->client_princ,
r->server_princ,
NULL, NULL,

View File

@@ -2574,6 +2574,8 @@ _kdc_tgs_rep(astgs_request_t r)
}
out:
r->ret = ret;
if(ret && ret != HDB_ERR_NOT_FOUND_HERE && data->data == NULL){
METHOD_DATA error_method = { 0, NULL };
@@ -2582,7 +2584,7 @@ out:
&error_method,
r->armor_crypto,
&req->req_body,
r->ret = ret,
r->ret,
ticket != NULL ? ticket->client : NULL,
ticket != NULL ? ticket->server : NULL,
csec, cusec,