From: Nick Porter Date: Thu, 1 May 2025 11:21:30 +0000 (+0100) Subject: Only call _lua_fr_request_register if there is a request X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c43bb27a22681bb0187809449aaa34d6969ef6e9;p=thirdparty%2Ffreeradius-server.git Only call _lua_fr_request_register if there is a request --- diff --git a/src/modules/rlm_lua/lua.c b/src/modules/rlm_lua/lua.c index 73d511403a0..909371fbc7e 100644 --- a/src/modules/rlm_lua/lua.c +++ b/src/modules/rlm_lua/lua.c @@ -820,7 +820,7 @@ unlang_action_t fr_lua_run(rlm_rcode_t *p_result, module_ctx_t const *mctx, requ ROPTIONAL(RDEBUG2, DEBUG2, "Calling %s() in interpreter %p", funcname, L); - _lua_fr_request_register(L, request); + if (request) _lua_fr_request_register(L, request); /* * Get the function were going to be calling