Skip to content

Commit

Permalink
remove checksimul from always
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jun 29, 2017
1 parent 015d5a0 commit 21dbf33
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/modules/rlm_always/rlm_always.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,24 +106,6 @@ static rlm_rcode_t CC_HINT(nonnull) mod_always_return(void *instance, UNUSED voi
return inst->rcode;
}

#ifdef WITH_SESSION_MGMT
/*
* checksimul fakes some other variables besides the rcode...
*/
static rlm_rcode_t CC_HINT(nonnull) mod_checksimul(void *instance, UNUSED void *thread, REQUEST *request)
{
struct rlm_always_t *inst = instance;

if (inst->rcode_old != inst->rcode_str) reparse_rcode(inst);

request->simul_count = inst->simulcount;

if (inst->mpp) request->simul_mpp = 2;

return inst->rcode;
}
#endif

extern rad_module_t rlm_always;
rad_module_t rlm_always = {
.magic = RLM_MODULE_INIT,
Expand All @@ -136,9 +118,6 @@ rad_module_t rlm_always = {
[MOD_AUTHORIZE] = mod_always_return,
[MOD_PREACCT] = mod_always_return,
[MOD_ACCOUNTING] = mod_always_return,
#ifdef WITH_SESSION_MGMT
[MOD_SESSION] = mod_checksimul,
#endif
[MOD_PRE_PROXY] = mod_always_return,
[MOD_POST_PROXY] = mod_always_return,
[MOD_POST_AUTH] = mod_always_return,
Expand Down

0 comments on commit 21dbf33

Please sign in to comment.