From: Alan T. DeKok Date: Tue, 23 Mar 2021 12:23:31 +0000 (-0400) Subject: assertions and more debug X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6c3554830eae19f6d0ab7ea2fe4dcbeb4f4e432;p=thirdparty%2Ffreeradius-server.git assertions and more debug --- diff --git a/src/lib/server/process.h b/src/lib/server/process.h index d47d042b019..d885a652f6b 100644 --- a/src/lib/server/process.h +++ b/src/lib/server/process.h @@ -118,7 +118,11 @@ RECV(generic) RETURN_MODULE_FAIL; } - if (cs) RDEBUG("Running 'recv %s' from file %s", cf_section_name2(cs), cf_filename(cs)); + + if (cs) { + RDEBUG("Running 'recv %s' from file %s", cf_section_name2(cs), cf_filename(cs)); + fr_assert(strcmp(cf_section_name1(cs), "recv") == 0); + } return unlang_module_yield_to_section(p_result, request, cs, state->rcode, state->resume, NULL, NULL); @@ -194,6 +198,11 @@ SEND(generic) MEM(0); } + if (cs) { + RDEBUG("Running 'send %s' from file %s", cf_section_name2(cs), cf_filename(cs)); + fr_assert(strcmp(cf_section_name1(cs), "send") == 0); + } + return unlang_module_yield_to_section(p_result, request, cs, state->rcode, state->resume, NULL, rctx);