Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow calling the same server if the packet types are different
so that we can receive an Access-Request, create a subrequest
of Accounting-Request, and then call ourselves to create a fake
"start" packet
  • Loading branch information
alandekok committed Aug 12, 2019
1 parent 492762a commit 02d820e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/unlang/call.c
Expand Up @@ -128,7 +128,9 @@ static unlang_action_t unlang_call(REQUEST *request,
for (child = request;
child != NULL;
child = child->parent) {
if (child->server_cs == g->server_cs) {
if ((child->server_cs == g->server_cs) &&
(child->async->process == request->async->process) &&
(child->async->process_inst == request->async->process_inst)) {
REDEBUG("Suppressing 'call' loop with server %s",
server);
*presult = RLM_MODULE_FAIL;
Expand Down

0 comments on commit 02d820e

Please sign in to comment.