Skip to content

Commit

Permalink
Move rad_postauth ACCEPT from rad_authenticate to request_finish
Browse files Browse the repository at this point in the history
  • Loading branch information
mcnewton committed Sep 25, 2012
1 parent 26c8b9b commit 5f03313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/auth.c
Expand Up @@ -796,10 +796,5 @@ int rad_authenticate(REQUEST *request)
rad_authlog("Login OK", request, 1);
}

/*
* Run the modules in the 'post-auth' section.
*/
result = rad_postauth(request);

return result;
}
4 changes: 4 additions & 0 deletions src/main/process.c
Expand Up @@ -1087,6 +1087,10 @@ STATE_MACHINE_DECL(request_finish)
if (vp) rad_postauth(request);
}

if (request->reply->code == PW_AUTHENTICATION_ACK) {
rad_postauth(request);
}

/*
* Send the reply here.
*/
Expand Down

0 comments on commit 5f03313

Please sign in to comment.