From 02d820e567e226b32164a29936e38aeb9f4c9cc7 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Mon, 12 Aug 2019 19:54:40 -0400 Subject: [PATCH] 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 --- src/lib/unlang/call.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/unlang/call.c b/src/lib/unlang/call.c index 508e781b9c35..a0d66f0db1c4 100644 --- a/src/lib/unlang/call.c +++ b/src/lib/unlang/call.c @@ -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;